# New Ticket Created by Patrick R. Michaud
# Please include the string: [perl #122951]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=122951 >
11:55 <pmichaud> r: say "abcde" ~~ / ab <![e]> cde | ab.. / # LTM fail
11:55 <camelia> rakudo-{parrot,moar} fd017a: OUTPUT«「abcd」»
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
continues to look for pure patterns in whatever follows the negative
lookahead. You might say that positive lookaheads are opaque to LTM,
but negative lookaheads are transparent to LTM.
Pm