Feature #5142: Remove ruby-mode.el from ruby's repo
ruby-mode.el syntax highlighting breaks on regular expression with quotes
I am using 1.9.2-p160 revision 29036
If there are an odd number of quotation marks inside a regular expression, the syntax highlighting breaks, continuing the regular expression color until another quotation mark is found.
method /"(["]*)"$/ do |arg|
continues regular expression syntax color until quotation is matched¶
Syntax continues to work correctly with parentheses around the method, such as
method(/"(["]*)"$/) do |arg|
Searching led me to a related bug that was fixed: http://redmine.ruby-lang.org/issues/show/4242
Updated by dgutov (Dmitry Gutov) about 8 years ago
This is kinda-fixed in the Emacs trunk, provided that "method" is one of the names in the list
Otherwise, the whole regexp literal isn't recognized in the first example. It should be obvious, the string-like highlighting would only start after the " character.