summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-02-14 10:04:07 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-02-14 10:04:07 +0100
commit11baf631abf5da1e2bdc887ea9586fd365c82fce (patch)
tree92927904256fbf0c87150090c35d32c9bf2c38d7 /toke.c
parent18d11902f69001065b3cb2a89f68f91321020f07 (diff)
downloadperl-11baf631abf5da1e2bdc887ea9586fd365c82fce.tar.gz
Forbid to use "foreach" as an attribute
(like all other control flow statements)
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 951c1ca84c..3c3e0ad2e2 100644
--- a/toke.c
+++ b/toke.c
@@ -4337,6 +4337,7 @@ Perl_yylex(pTHX)
case KEY_or:
case KEY_and:
case KEY_for:
+ case KEY_foreach:
case KEY_unless:
case KEY_if:
case KEY_while: