Skip to content

Commit 292f669

Browse files
committed
disallow anonymous constant declarations
1 parent 137d5f5 commit 292f669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STD.pm6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2831,7 +2831,7 @@ grammar P6 is STD {
28312831
[
28322832
| '\\'? <defterm>
28332833
| <variable> {.add_variable($<variable>.Str); }
2834-
| <?>
2834+
| {} <.sorry: "Missing symbol in constant declaration">
28352835
]
28362836
{ $*IN_DECL = ''; }
28372837
<.ws>

0 commit comments

Comments
 (0)