#697: potential regex bug ---------------------------------------+------------------------------------ Reporter: daniel.fonta...@… | Owner: lsansone...@… 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/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel