Permalink
Browse files

Prefer bare sigils over special vars in decls

  • Loading branch information...
1 parent 77c9884 commit 0f2049cf00a7bbcb4f4db2ad05bce66560a213ba @TimToady TimToady committed Jun 5, 2014
Showing with 5 additions and 5 deletions.
  1. +5 −5 STD.pm6
View
10 STD.pm6
@@ -2256,12 +2256,12 @@ grammar P6 is STD {
}
token special_variable:sym<$-> {
- <sym>
+ <sym> <!{ $*IN_DECL }>
<.obs('$- variable', 'Form module')>
}
token special_variable:sym<$=> {
- <sym> <!before \w | '('>
+ <sym> <!before \w | '('> <!{ $*IN_DECL }>
<.obs('$= variable', 'Form module')>
}
@@ -2316,7 +2316,7 @@ grammar P6 is STD {
}
token special_variable:sym<$+> {
- <sym> :: <?before \s | ',' | <terminator> >
+ <sym> :: <?before \s | ',' | <terminator> > <!{ $*IN_DECL }>
<.obs('$+ variable', 'Form module')>
}
@@ -2404,7 +2404,7 @@ grammar P6 is STD {
}
token special_variable:sym<$\\> {
- <sym>
+ <sym> <!{ $*IN_DECL }>
<.obs('$\\ variable', "the filehandle's :ors attribute")>
}
@@ -2419,7 +2419,7 @@ grammar P6 is STD {
}
token special_variable:sym<$;> {
- <sym>
+ <sym> <!{ $*IN_DECL }>
<.obs('$; variable', 'real multidimensional hashes')>
}

0 comments on commit 0f2049c

Please sign in to comment.