Skip to content

Commit fc99946

Browse files
committed
RT #122245 fix \C[...] (negated \c)
1 parent a0842ef commit fc99946

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/QRegex/P6Regex/Actions.nqp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,9 @@ class QRegex::P6Regex::Actions is HLL::Actions {
427427
}
428428

429429
method cclass_backslash:sym<c>($/) {
430-
make QAST::Regex.new( $<charspec>.ast, :rxtype('literal'), :node($/) );
430+
make $<sym> eq 'C' ??
431+
QAST::Regex.new( $<charspec>.ast, :rxtype('enumcharlist'), :negate(1), :node($/) ) !!
432+
QAST::Regex.new( $<charspec>.ast, :rxtype('literal'), :node($/) )
431433
}
432434

433435
method cclass_backslash:sym<any>($/) {

0 commit comments

Comments
 (0)