[perl #116893] [BUG] An alternation of literal strings doesn't backtrack properly in Rakudo
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #116893] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=116893 > nr: say "abcde" ~~ / | @()+»/ niecza v24-23-g0520c7c: OUTPUT«「abcde」» ..rakudo 9c59a1: OUTPUT«「cde」» wow what's that » doing there? word boundary, right? nod forcing backtracking which n does but r doesn't for the literals so... Niecza is right on the first one? yes, because nothing committed to the current LTM inside the @ * masak submits rakudobug
[perl #116895] [BUG] LTM alternation captures the wrong stuff when backtracking in Rakudo
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #116895] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=116895 > nr: say "abcde" ~~ / (a | b | bc | cde)+»/ rakudo 9c59a1: OUTPUT«「abcde」 0 => 「a」 0 => 「bc」 0 => 「b」 0 => 「cde」» ..niecza v24-23-g0520c7c: OUTPUT«「abcde」 0 => 「a」 0 => 「b」 0 => 「cde」» ooh, another bug backtrack isn't taking out the [bc] in rakudo (which can't happen in a pure Cursor model because the info should be attached only to the cursor that is thrown away in order to backtrack) * masak submits rakudobug masak: can you assign it to me? FROGGS: I'll try.