Skip to content

Commit 83e13b6

Browse files
committed
fix separator use with code block in quantifier
1 parent 3097e14 commit 83e13b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QRegex/P6Regex/Actions.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class QRegex::P6Regex::Actions is HLL::Actions {
8787
$qast := $ast;
8888
}
8989
if $<separator> {
90-
unless $qast.rxtype eq 'quant' {
90+
if $qast.rxtype ne 'quant' && $qast.rxtype ne 'dynquant' {
9191
$/.CURSOR.panic("'" ~ $<separator>[0]<septype> ~
9292
"' many only be used immediately following a quantifier")
9393
}

0 commit comments

Comments
 (0)