summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-22 06:03:12 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-22 06:03:12 +0000
commite8a71e64a15c46388e1abf293fa81df3ebfc5643 (patch)
tree31970c87c846e8d5d4c61714742dbb12f7157eb7 /parse.y
parent4a3f2a7bc5de8e0b3c1cb18a689d21a66e289f70 (diff)
* parse.y (f_larglist): should not allow semicolon separated local
variable declarations if formal argument list is not surrounded by parentheses, mostly because semicolon outside of parentheses appears to terminate the expression. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 54e0c6ab8a..3f85c07b09 100644
--- a/parse.y
+++ b/parse.y
@@ -3453,7 +3453,7 @@ f_larglist : '(' f_args opt_bv_decl rparen
$$ = dispatch1(paren, $2);
%*/
}
- | f_args opt_bv_decl
+ | f_args
{
/*%%%*/
$$ = NEW_LAMBDA($1);