File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -4826,11 +4826,15 @@ grammar Regex is STD {
4826
4826
<!stopper >
4827
4827
<!regex_infix >
4828
4828
<atom >
4829
- [ <normspace >? <quantifier > ]?
4829
+ [ <normspace >? <quantifier > < normspace > ? < separator > ? ]?
4830
4830
# <?{ $<atom>.max_width }>
4831
4831
# || <.panic: "Cannot quantify zero-width atom">
4832
4832
}
4833
4833
4834
+ token separator {
4835
+ '%' <normspace >? <quantified_atom >
4836
+ }
4837
+
4834
4838
token atom {
4835
4839
:dba ('regex atom' )
4836
4840
[
@@ -5151,7 +5155,7 @@ grammar Regex is STD {
5151
5155
| \d + \s + '..' <.panic : "Spaces not allowed in bare range" >
5152
5156
| (\d + ) [ '..' [ (\d + ) { $¢. panic(" Empty range" ) if $0 . Str > $1 [0 ]. Str } | '*' | <.panic : "Malformed range" > ] ]?
5153
5157
| <embeddedblock >
5154
- | <quantified_atom >
5158
+ | <quantified_atom > < .worryobs ( " atom ** " ~ $ < quantified_atom > . Str ~ " as separator " , " atom+ % " ~ $ < quantified_atom > . Str , " nowadays " )>
5155
5159
]
5156
5160
}
5157
5161
You can’t perform that action at this time.
0 commit comments