Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allow $% and $@ itemizers to align with STD
  • Loading branch information
TimToady committed May 10, 2013
1 parent 0a84de2 commit 1d127e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/STD.pm6
Expand Up @@ -2092,7 +2092,7 @@ grammar P6 is STD {
}

token special_variable:sym<$@> {
<sym> <!before \w> ::
<sym> <!before \w | '(' | <sigil> > ::
<.obs('$@ variable as eval error', '$!')>
}

Expand All @@ -2108,7 +2108,7 @@ grammar P6 is STD {
<.obs('$$ variable', '$*PID')>
}
token special_variable:sym<$%> {
<sym> <!before \w> <!sigil> ::
<sym> <!before \w | '(' | <sigil> > ::
<.obs('$% variable', 'Form module')>
}

Expand Down Expand Up @@ -2346,10 +2346,10 @@ grammar P6 is STD {

token desigilname {
[
| <?before '$' >
| <?before <.sigil> <.sigil> > <VAR=variable>
| <?before <.sigil> >
[ <?{ $*IN_DECL }> <.panic: "Cannot declare an indirect variable name"> ]?
<variable>
| <?before <[\@\%\&]> <sigil>* \w > <.panic: "Invalid hard reference syntax">
| <longname>
]
}
Expand Down

0 comments on commit 1d127e4

Please sign in to comment.