Skip to content

Commit 62fce78

Browse files
committed
wrongly warns on x ** {3} and such
1 parent ad1e550 commit 62fce78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STD.pm6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5157,7 +5157,7 @@ grammar Regex is STD {
51575157
| \d+ \s+ '..' <.panic: "Spaces not allowed in bare range">
51585158
| (\d+) [ '..' [ (\d+) {.panic("Empty range") if $0.Str > $1[0].Str } | '*' | <.panic: "Malformed range"> ] ]?
51595159
| <embeddedblock>
5160-
| <quantified_atom> <.worryobs("atom ** " ~ $<quantified_atom>.Str ~ " as separator", "atom+ % " ~ $<quantified_atom>.Str, "nowadays")>
5160+
| {} <quantified_atom> <.worryobs("atom ** " ~ $<quantified_atom>.Str ~ " as separator", "atom+ % " ~ $<quantified_atom>.Str, "nowadays")>
51615161
]
51625162
}
51635163

0 commit comments

Comments
 (0)