[MacRuby] #697: potential regex bug
#697: potential regex bug ---------------------------------------+------------------------------------ Reporter: daniel.fontaine@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ---------------------------------------+------------------------------------ I tried to use the coderay syntax highlighting gem. The following trivial statement gives a a regex compiling error. require 'rubygems' require 'coderay' # output as HTML div (using inline CSS styles) puts CodeRay.scan('puts "Hello, world!"', :ruby).div ---------------------------------- /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/coderay-0.9.3/lib/coderay/encoders/html.rb:126: regexp `[\t"&><\0-\x8\xB-\x1f] 'compilation error: U_REGEX_BAD_ESCAPE_SEQUENCE SyntaxError: compile error from /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/coderay-0.9.3/lib/coderay/helpers/plugin.rb:189:in `block' from /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/coderay-0.9.3/lib/coderay/helpers/plugin.rb:47:in `load:' from /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/coderay-0.9.3/lib/coderay/tokens.rb:121:in `method_missing:' from /Users/dan/(irb):6:in `<main>' -- Ticket URL: <http://www.macruby.org/trac/ticket/697> MacRuby <http://macruby.org/>
#697: potential regex bug ---------------------------------------+------------------------------------ Reporter: daniel.fontaine@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: duplicate Keywords: | ---------------------------------------+------------------------------------ Changes (by martinlagardette@…): * status: new => closed * resolution: => duplicate Comment: Hi! Thanks for the report. This is a duplicate of #612 -- Ticket URL: <http://www.macruby.org/trac/ticket/697#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby