Hi,

I found something that could be problematic (haven't yet found out if it
should be a special case) in Synopsis 5. More precisely it is under the
chapter "Accessing captured subrules" in the test case
t/regex/from_perl6_rules/capture.t lines 67–71:

ok(eval(' "bookkeeper" ~~ m/<single> ($/<single>)/ '), 'Named backref',
:todo<feature>);

How can the parser know what you mean by $/<single>? Maybe you want $/
followed by <single> or maybe $/<single>?

A rewrite of this to $<single> would solve this specific problem, but
not situations like: $/<single><sth>. Variants like $/.<single> are also
ambiguous.

A solution could be something like like the Perl5 style: ${/<single><sth>}

Greetings,
   gw

Reply via email to