Skip to content

Commit c7bfa55

Browse files
committed
Smarter fix for \v under NFG.
1 parent c7104bc commit c7bfa55

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/QRegex/P6Regex/Actions.nqp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -364,21 +364,9 @@ class QRegex::P6Regex::Actions is HLL::Actions {
364364
}
365365

366366
method backslash:sym<v>($/) {
367-
my $qast := QAST::Regex.new( "\x[0a,0b,0c,0d,85,2028,2029]",
367+
my $qast := QAST::Regex.new( "\x[0a,0b,0c,0d,85,2028,2029]\r\n",
368368
:rxtype('enumcharlist'),
369369
:negate($<sym> eq 'V'), :node($/) );
370-
if $qast.negate {
371-
$qast := QAST::Regex.new(
372-
:rxtype('conj'),
373-
QAST::Regex.new( :rxtype<cclass>, :name<n>, :negate(1) ),
374-
$qast);
375-
}
376-
else {
377-
$qast := QAST::Regex.new(
378-
:rxtype('alt'),
379-
QAST::Regex.new( :rxtype<cclass>, :name<n> ),
380-
$qast);
381-
}
382370
make $qast;
383371
}
384372

0 commit comments

Comments
 (0)