[#47409] [ruby-trunk - Feature #6973][Open] Add an #integral? method to Numeric to test for whole-number values — "regularfry (Alex Young)" <alex@...>

12 messages 2012/09/03

[#47481] [ruby-trunk - Bug #7008][Open] rake is crashing when trying to compile ffi gem — "drookie (Eugene M. Zheganin Eugene M. Zheganin)" <eugene@...>

10 messages 2012/09/12

[#47505] [ruby-trunk - Feature #7019][Open] allow `private` and `protected` keywords to take blocks — "alexeymuranov (Alexey Muranov)" <redmine@...>

15 messages 2012/09/13

[#47582] [ruby-trunk - Bug #7037][Open] float formatting inconsistently rounds half to even — "headius (Charles Nutter)" <headius@...>

14 messages 2012/09/19

[#47638] [ruby-trunk - Bug #7046][Open] ERB#run and ERB#result are not safe for concurrent use — "headius (Charles Nutter)" <headius@...>

11 messages 2012/09/21

[#47655] [ruby-trunk - Feature #7051][Open] Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread. — "sam.saffron (Sam Saffron)" <sam.saffron@...>

13 messages 2012/09/23

[#47657] [ruby-trunk - Feature #7055][Open] Allow `.foo=` as a synonym of `self.foo=` — "alexeymuranov (Alexey Muranov)" <redmine@...>

11 messages 2012/09/23

[#47730] [ruby-trunk - Bug #7085][Open] Subversion → GitHub gateway stops. — "shyouhei (Shyouhei Urabe)" <shyouhei@...>

27 messages 2012/09/29

[#47735] [ruby-trunk - Bug #7087][Open] ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist — "rklemme (Robert Klemme)" <shortcutter@...>

10 messages 2012/09/29

[#47759] [ruby-trunk - Bug #7092][Open] StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives — "jayferd (Jay Adkisson)" <jjmadkisson@...>

8 messages 2012/09/30

[ruby-core:47441] [ruby-trunk - Bug #5024] ruby-mode.el syntax highlighting breaks on regular expression with quotes

From: "dgutov (Dmitry Gutov)" <dgutov@...>
Date: 2012-09-06 00:33:10 UTC
List: ruby-core #47441
Issue #5024 has been updated by dgutov (Dmitry Gutov).


This is kinda-fixed in the Emacs trunk, provided that "method" is one of the names in the list `ruby-syntax-methods-before-regexp`.
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.
----------------------------------------
Bug #5024: ruby-mode.el syntax highlighting breaks on regular expression with quotes
https://bugs.ruby-lang.org/issues/5024#change-29202

Author: slickrobert (Robert Smith)
Status: Assigned
Priority: Normal
Assignee: nobu (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://bugs.ruby-lang.org/

In This Thread