Skip to content

Commit

Permalink
Handle quantification of vanishing things.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 7, 2012
1 parent 9e503bd commit 5591588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QRegex/P5Regex/Actions.nqp
Expand Up @@ -44,7 +44,7 @@ class QRegex::P5Regex::Actions is HLL::Actions {
my $qast := $<atom>.ast;
if $<quantifier> {
my $ast := $<quantifier>[0].ast;
$ast.unshift($qast);
$ast.unshift($qast || QAST::Regex.new( :rxtype<anchor>, :name<pass> ));
$qast := $ast;
}
$qast.backtrack('r') if $qast && !$qast.backtrack && %*RX<r>;
Expand Down

0 comments on commit 5591588

Please sign in to comment.