Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Handle quantification of vanishing things.

  • Loading branch information...
commit 5591588e4cad8aa963a71804fbff50af719ce22b 1 parent 9e503bd
@jnthn jnthn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/QRegex/P5Regex/Actions.nqp
View
2  src/QRegex/P5Regex/Actions.nqp
@@ -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>;
Please sign in to comment.
Something went wrong with that request. Please try again.