Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
disallow anonymous constant declarations
  • Loading branch information
TimToady committed Mar 3, 2012
1 parent 137d5f5 commit 292f669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STD.pm6
Expand Up @@ -2831,7 +2831,7 @@ grammar P6 is STD {
[
| '\\'? <defterm>
| <variable> {.add_variable($<variable>.Str); }
| <?>
| {} <.sorry: "Missing symbol in constant declaration">
]
{ $*IN_DECL = ''; }
<.ws>
Expand Down

0 comments on commit 292f669

Please sign in to comment.