Skip to content

Commit 882094e

Browse files
committed
don't allow whitespace in &.() et al. jnthn++
1 parent a540d4e commit 882094e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

STD.pm6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,14 +1911,14 @@ grammar P6 is STD {
19111911
[
19121912
| $<type>=[<[ ! ^ ]>?]<longname> [ <multisig> | <trait> ]*
19131913
| <multisig> <trait>*
1914-
| <sigil> '.'
1914+
| <sigil>'.':!s
19151915
:dba('subscript signature')
19161916
[
19171917
| '(' ~ ')' <signature>
19181918
| '[' ~ ']' <signature>
19191919
| '{' ~ '}' <signature> # don't need curlycheck here
19201920
| <?before '<'> <postcircumfix>
1921-
]
1921+
]:s
19221922
<trait>*
19231923
| <?>
19241924
]
@@ -5111,7 +5111,7 @@ grammar Regex is STD {
51115111
]?
51125112
}
51135113

5114-
token assertion:sym<:> { <?before ':'<alpha>> <cclass_expr> }
5114+
token assertion:sym<:> { <?before ':'> <cclass_expr> }
51155115
token assertion:sym<[> { <?before '['> <cclass_expr> }
51165116
token assertion:sym<+> { <?before '+'> <cclass_expr> }
51175117
token assertion:sym<-> { <?before '-'> <cclass_expr> }

0 commit comments

Comments
 (0)