Created
January 13, 2013 10:59
-
-
Save jnthn/4523527 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/QRegex/P6Regex/Actions.nqp b/src/QRegex/P6Regex/Actions.nqp | |
index 5fe283a..90597c2 100755 | |
--- a/src/QRegex/P6Regex/Actions.nqp | |
+++ b/src/QRegex/P6Regex/Actions.nqp | |
@@ -432,7 +432,7 @@ class QRegex::P6Regex::Actions is HLL::Actions { | |
while $i < $n { | |
my $ast := $clist[$i].ast; | |
if $ast.negate { | |
- $ast.subtype('zerowidth'); | |
+ $ast := QAST::Regex.new( :rxtype<conj>, :subtype<zerowidth>, $ast ); | |
$qast := QAST::Regex.new( $ast, $qast, :rxtype<concat>, :node($/)); | |
} | |
else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment