Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
RT #115802, cclasses dont support zerowidth
  • Loading branch information
FROGGS committed Feb 24, 2013
1 parent ba02ea9 commit a4818ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/QRegex/P6Regex/Actions.nqp
Expand Up @@ -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 {
Expand Down

0 comments on commit a4818ae

Please sign in to comment.