[MacRuby] #762: Some regexp returns "compilation error: U_REGEX_RULE_SYNTAX".
#762: Some regexp returns "compilation error: U_REGEX_RULE_SYNTAX". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- I attach a UnitTest of Ruby 1.9.2 preview 3. Some regexp returns "compilation error" in this UnitTest. {{{ $ macruby test_regexp.rb test_regexp.rb:76: regexp `&(?<foo>.*?);' compilation error: U_REGEX_RULE_SYNTAX test_regexp.rb:84: regexp `&(?<foo>.*?);' compilation error: U_REGEX_RULE_SYNTAX test_regexp.rb:87: regexp `&(?<foo>.*?); (y)' compilation error: U_REGEX_RULE_SYNTAX test_regexp.rb:91: regexp `&(?<foo>.*?); (?<bar>y)' compilation error: U_REGEX_RULE_SYNTAX test_regexp.rb:93: regexp `&(?<foo>.*?); (?<foo>y)' compilation error: U_REGEX_RULE_SYNTAX test_regexp.rb:95: regexp `(?<id>[A-Za-z_]+)' compilation error: U_REGEX_RULE_SYNTAX ---- snip ---- }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/762> MacRuby <http://macruby.org/>
#762: Some regexp returns "compilation error: U_REGEX_RULE_SYNTAX". ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by lsansonetti@…): Named captures are not yet supported. They used to work until we rewrote the RE layer using ICU. It is possible to make them work by pre-parsing the regexps during parsing phase and appropriately creating locals, but this may not happen for 0.7. -- Ticket URL: <http://www.macruby.org/trac/ticket/762#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby