diff options
| author | Dmitry Gutov | 2025-09-16 02:14:09 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2025-09-16 02:17:13 +0300 |
| commit | 76f50fa55ce19eb4ae0a249a53289c724ea23492 (patch) | |
| tree | 3efb7cb1baf5df21a2b9aeb4a92c361955b33c48 /test/lisp/progmodes/ruby-mode-resources/ruby.rb | |
| parent | 3438e15e31d88acef13751ef5e56b85d79ab78d9 (diff) | |
| download | emacs-76f50fa55ce19eb4ae0a249a53289c724ea23492.tar.gz emacs-76f50fa55ce19eb4ae0a249a53289c724ea23492.zip | |
ruby-syntax-propertize: Add exception for /=
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
Create an exception for assign-division operator not to be
recognized as regexp start (bug#79454).
* test/lisp/progmodes/ruby-mode-resources/ruby.rb: Add example.
Diffstat (limited to 'test/lisp/progmodes/ruby-mode-resources/ruby.rb')
| -rw-r--r-- | test/lisp/progmodes/ruby-mode-resources/ruby.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lisp/progmodes/ruby-mode-resources/ruby.rb b/test/lisp/progmodes/ruby-mode-resources/ruby.rb index a411b39a8fc..4fa7332f017 100644 --- a/test/lisp/progmodes/ruby-mode-resources/ruby.rb +++ b/test/lisp/progmodes/ruby-mode-resources/ruby.rb | |||
| @@ -39,6 +39,7 @@ a = sub / aslb + bsub / bslb; | |||
| 39 | 39 | ||
| 40 | # Highlight the regexp after "if". | 40 | # Highlight the regexp after "if". |
| 41 | x = toto / foo if / do bar/ =~ "dobar" | 41 | x = toto / foo if / do bar/ =~ "dobar" |
| 42 | x /= 4 | ||
| 42 | 43 | ||
| 43 | # Regexp options are highlighted. | 44 | # Regexp options are highlighted. |
| 44 | 45 | ||