# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #104840]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=104840 >


<colomon> moritz: so, I've got regex accidental { '^' | '^^' | '_' |
'__' | '=' }, and the debugger shows it's matching '^' and not going
on to match '^^'.  What should I be doing to solve that?
<Timbus> put your longer tokens first?
<Timbus> i was just recalling ltm used to not work, but that was way ages ago
<colomon> wait, it's *longest* -- shouldn't it automatically work, then?
<Timbus> i assumed from what you said, it was still not working
<colomon> and reordering does indeed fix the problem in nom.  based on
my reading of the spec, this is clearly a nom bug. (And I think one
that b got correct, even though it didn't have working LTM as far as I
know.)
<Timbus> odd
<masak> nom: '^^^^' ~~ / ('^' | '^^')+ /; say $0.elems
<p6eval> nom 4269d7: OUTPUT«4␤»
* masak submits rakudobug
<masak> niecza: '^^^^' ~~ / ('^' | '^^')+ /; say $0.elems
<p6eval> niecza v12: OUTPUT«2␤»
<masak> niecza: '^^^^' ~~ / '^' | '^^' /; say $/.chars
<p6eval> niecza v12: OUTPUT«2␤»
<masak> nom: '^^^^' ~~ / '^' | '^^' /; say $/.chars
<p6eval> nom 4269d7: OUTPUT«1␤»
<moritz> colomon: LTM is simply not working well enough

Reply via email to