We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrated from rt.perl.org#130083 (status was 'new')
Searchable as RT130083$
The text was updated successfully, but these errors were encountered:
perl6-debug-m -e 'grammar G { regex TOP {^^ "#" \s* "line" \s+ $<line>=(\d+) \s* [ \s (<[,:]>?) $<filename>=(<-[,:]>+) $0 ]? \s* $$} }; say G.parse("#line 2 ,foo.bar,")' Nil
It matched up through the 'foo.bar', but then backs off back to the space and gives Nil.
perl6-m -e 'grammar G { regex TOP {^^ "#" \s* "line" \s+ $<line>=(\d+) \s* [ \s (<[,:]>?) $<filename>=(<-[,:]>+) $0 ]? \s* $$} }; say G.parse("#line 2 ,foo.bar,")' 「#line 2 foo.bar」 line => 「2」 0 => 「」 filename => 「foo.bar」
However, simpler example works in both.
perl6-debug-m -e 'grammar G { regex TOP {^^ "#" \s* "line" \s+ $<line>=(\d+) $$} }; say G.parse("#line 2")' 「#line 2」 0 => 「2」 line => 「2」
perl6-m -e 'grammar G { regex TOP {^^ "#" \s* "line" \s+ $<line>=(\d+) $$} }; say G.parse("#line 2")' 「#line 2」 0 => 「2」 line => 「2」
perl6 --version This is Rakudo version 2016.10-144-ga1347ca built on MoarVM version 2016.10-35-gec45ae2
Sorry, something went wrong.
No branches or pull requests
Migrated from rt.perl.org#130083 (status was 'new')
Searchable as RT130083$
The text was updated successfully, but these errors were encountered: