diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-22 06:03:12 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-22 06:03:12 +0000 |
commit | d4a1a2ab7354bec3d1fe42a9de4bc1fb9fe06413 (patch) | |
tree | 31970c87c846e8d5d4c61714742dbb12f7157eb7 | |
parent | da805d34187aba4cacbb792155a11ab4201f6ad4 (diff) | |
download | ruby-d4a1a2ab7354bec3d1fe42a9de4bc1fb9fe06413.tar.gz ruby-d4a1a2ab7354bec3d1fe42a9de4bc1fb9fe06413.tar.xz ruby-d4a1a2ab7354bec3d1fe42a9de4bc1fb9fe06413.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@19886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +Wed Oct 22 14:59:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * 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. + Wed Oct 22 14:52:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * string.c (rb_external_str_new_with_enc): no implicit strlen call. @@ -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); |