Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow $% and $@ itemizers to align with STD

  • Loading branch information...
commit 1d127e411ec6afe968b676aa1505c20d45d2ad1d 1 parent 0a84de2
Larry Wall TimToady authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/STD.pm6
8 src/STD.pm6
View
@@ -2092,7 +2092,7 @@ grammar P6 is STD {
}
token special_variable:sym<$@> {
- <sym> <!before \w> ::
+ <sym> <!before \w | '(' | <sigil> > ::
<.obs('$@ variable as eval error', '$!')>
}
@@ -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')>
}
@@ -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>
]
}
Please sign in to comment.
Something went wrong with that request. Please try again.