Skip to content
Browse files

don't carp about %{} and such in a declaration

  • Loading branch information...
1 parent 6b4371d commit 2504c1ad139bf35826753ebff769aab1c9209558 @TimToady TimToady committed Jun 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 STD.pm6
View
4 STD.pm6
@@ -2356,7 +2356,7 @@ grammar P6 is STD {
}
regex special_variable:sym<${ }> {
- <sigil> '{' {} $<text>=[.*?] '}'
+ <sigil> '{' {} $<text>=[.*?] '}' <!{ $*IN_DECL }>
{
my $sigil = $<sigil>.Str;
my $text = $<text>.Str;
@@ -2376,7 +2376,7 @@ grammar P6 is STD {
}
token special_variable:sym<$[> {
- <sym>
+ <sym> <!{ $*IN_DECL }>
<.obs('$[ variable', 'user-defined array indices')>
}

0 comments on commit 2504c1a

Please sign in to comment.
Something went wrong with that request. Please try again.