Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
don't allow whitespace in &.() et al. jnthn++
  • Loading branch information
TimToady committed Mar 1, 2012
1 parent a540d4e commit 882094e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions STD.pm6
Expand Up @@ -1911,14 +1911,14 @@ grammar P6 is STD {
[
| $<type>=[<[ ! ^ ]>?]<longname> [ <multisig> | <trait> ]*
| <multisig> <trait>*
| <sigil> '.'
| <sigil>'.':!s
:dba('subscript signature')
[
| '(' ~ ')' <signature>
| '[' ~ ']' <signature>
| '{' ~ '}' <signature> # don't need curlycheck here
| <?before '<'> <postcircumfix>
]
]:s
<trait>*
| <?>
]
Expand Down Expand Up @@ -5111,7 +5111,7 @@ grammar Regex is STD {
]?
}

token assertion:sym<:> { <?before ':'<alpha>> <cclass_expr> }
token assertion:sym<:> { <?before ':'> <cclass_expr> }
token assertion:sym<[> { <?before '['> <cclass_expr> }
token assertion:sym<+> { <?before '+'> <cclass_expr> }
token assertion:sym<-> { <?before '-'> <cclass_expr> }
Expand Down

0 comments on commit 882094e

Please sign in to comment.