[MacRuby] #1018: Regexp compilation error

MacRuby ruby-noreply at macosforge.org
Thu Dec 2 01:00:42 PST 2010


#1018: Regexp compilation error
----------------------------+-----------------------------------------------
 Reporter:  tglee@…         |       Owner:  lsansonetti@…        
     Type:  defect          |      Status:  new                  
 Priority:  blocker         |   Milestone:                       
Component:  MacRuby         |    Keywords:  Regexp               
----------------------------+-----------------------------------------------
Changes (by lsansonetti@…):

  * milestone:  MacRuby 0.8 =>


Old description:

> $ macirb
>
> irb(main):001:0> pattern = /(?<test>Ruby|Perl)/
>
> => SyntaxError: (irb):1: regexp `(?<test>Ruby|Perl)' compilation error:
> U_REGEX_RULE_SYNTAX
>
> irb(main):002:0>

New description:

 $ macirb

 irb(main):001:0> pattern = /(?<test>Ruby|Perl)/

 => SyntaxError: (irb):1: regexp `(?<test>Ruby|Perl)' compilation error:
 U_REGEX_RULE_SYNTAX

 irb(main):002:0>

--

Comment:

 It looks like CRuby behaves the same?

 {{{
 $ ruby -e "re=/(?<test>Ruby|Perl)/"
 -e:1: undefined (?...) sequence: /(?<test>Ruby|Perl)/
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1018#comment:1>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list