New issue
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
negative lookahead doesn't LTM properly #3548
Comments
From @pmichaud11:55 <pmichaud> r: say "abcde" ~~ / ab <![e]> cde | ab.. / # LTM fail Correct should be "abcde", since he first alternation has a longer token to be matched. Per S05:2887: [...] So LTM completely ignores negative lookaheads, and Pm |
From @usev6I added a test (fudged 'todo') to S05-metasyntax/longest-alternative.t with commit Raku/roast@38931b20b4 |
1 similar comment
From @usev6I added a test (fudged 'todo') to S05-metasyntax/longest-alternative.t with commit Raku/roast@38931b20b4 |
@usev6 - Status changed from 'new' to 'open' |
From @dogbert17On Sat, 11 Oct 2014 05:05:48 -0700, pmichaud wrote:
Still broken in Rakudo version 2018.02-12-ge3c4db732 built on MoarVM version 2018.02 dogbert@dogbert-VirtualBox ~ $ perl6 -e 'say "abcde" ~~ / ab <![e]> cde | ab.. / ' |
Migrated from rt.perl.org#122951 (status was 'open')
Searchable as RT122951$
The text was updated successfully, but these errors were encountered: