From: Yui NARUSE Date: 2011-07-16T00:10:37+09:00 Subject: [ruby-core:38076] [Ruby 1.9 - Bug #5024][Assigned] ruby-mode.el syntax highlighting breaks on regular expression with quotes Issue #5024 has been updated by Yui NARUSE. Status changed from Open to Assigned Assignee set to Nobuyoshi Nakada ---------------------------------------- Bug #5024: ruby-mode.el syntax highlighting breaks on regular expression with quotes http://redmine.ruby-lang.org/issues/5024 Author: Robert Smith Status: Assigned Priority: Normal Assignee: Nobuyoshi Nakada Category: Target version: 1.9.2 ruby -v: 1.9.2-p180 revision 30909 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 -- http://redmine.ruby-lang.org