Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't disregard backtrack modifiers directly placed on atoms. This wa…
…s why assertions.t failed in Rakudo.
  • Loading branch information
jnthn committed May 27, 2012
1 parent cf4bf1f commit 5db4340
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/QRegex/P6Regex/Actions.nqp
Expand Up @@ -80,7 +80,8 @@ class QRegex::P6Regex::Actions is HLL::Actions {
QAST::Regex.new( :rxtype<quant>, :min(0), :max(1), $<separator>[0].ast ));
}
}
$qast.backtrack('r') if $qast && !$qast.backtrack && %*RX<r>;
$qast.backtrack('r') if $qast && !$qast.backtrack &&
(%*RX<r> || $<backmod> && ~$<backmod>[0] eq ':');
make $qast;
}

Expand Down

0 comments on commit 5db4340

Please sign in to comment.