On Tue Jun 29 06:34:35 2010, masak wrote:
> <masak> std: / $<foo> = [ foo ] /
> <p6eval> std 31503: OUTPUT«ok 00:01 113m␤»
> <masak> std: / $<foo><bar> = [ foo ] /
> <p6eval> std 31503: OUTPUT«ok 00:01 110m␤»
> <masak> rakudo: "foo" ~~ / $<foo><bar> = [ foo ] /; say $<foo><bar>
> <p6eval> rakudo 1576d4: OUTPUT«===SORRY!===␤Confused at line 11, near
> "\"foo\" ~~ /"␤»
> <masak> but it's spec'd?
> <pmichaud> I suspect it is.
> <masak> ok.
> <moritz_> don't think it's specced for the nested case
> * masak submits rakudobug
> <masak> moritz_: STD parses it, at least.
> <masak> so it's some sort of spec.
> 
> Again, this is probably an nqp-rx thing rather than a Rakudo thing,
> but there's no place to send nqp-rx-bugs. :)

Old ticket, esp. given the nqp-rx reference. The behavior in rakudo now matches 
the behavior 
in STD:

08:54 < [Coke]> rakudo: "foo" ~~ / $<foo><bar> = [ foo ] /; say $<foo><bar>
                #76266
08:54 <+camelia> rakudo b2072f: OUTPUT«===SORRY!===␤Unrecognized regex
                 metacharacter = (must be quoted to match literally)␤at
                 /tmp/e83OQ1Z2oA:1␤------> "foo" ~~ / $<foo><bar> ⏏= [ foo ] /;
                 say $<foo><bar> #76266␤Unable to parse regex; couldn't find
                 final '/'␤at /tmp/…
08:55 < [Coke]> std: "foo" ~~ / $<foo><bar> = [ foo ] /; say $<foo><bar> #76266
08:55 <+camelia> std d4cc5ab: OUTPUT«===SORRY!===␤Unrecognized regex
                 metacharacter = (must be quoted to match literally) at
                 /tmp/WaZTcGIrM8 line 1:␤------> "foo" ~~ / $<foo><bar> =⏏ [
                 foo ] /; say $<foo><bar> #76266␤Unable to parse regex;
                 couldn't find final '/' at /…

Ticket is closable with tests.

-- 
Will "Coke" Coleda

Reply via email to