Last active
December 14, 2015 03:49
-
-
Save FROGGS/5023754 to your computer and use it in GitHub Desktop.
This file contains 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..dff6757 100755 | |
--- a/src/QRegex/P6Regex/Actions.nqp | |
+++ b/src/QRegex/P6Regex/Actions.nqp | |
@@ -432,7 +432,12 @@ class QRegex::P6Regex::Actions is HLL::Actions { | |
while $i < $n { | |
my $ast := $clist[$i].ast; | |
if $ast.negate { | |
- $ast.subtype('zerowidth'); | |
+ if $ast.rxtype eq 'cclass' { | |
+ $ast := QAST::Regex.new( :rxtype<conj>, :subtype<zerowidth>, $ast ); | |
+ } | |
+ else { | |
+ $ast.subtype('zerowidth'); | |
+ } | |
$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