summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-14 07:28:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-14 07:28:36 +0000
commit45f6cdcdd3d11de1bf7691f732bc967880b4caad (patch)
tree4b6ec9f40a3d7aaf03cf1a05e0e09e8bb72e6769 /parse.y
parentc80308119b134e63fbc776aca077118ce3e7db4c (diff)
Bug #6403: reset states after empty args
* parse.y (f_arglist): should reset lexical states after empty argument list with no parenthesis as well as parenthesized list, so that reserved name method definition work. [ruby-dev:45626] [Bug #6403] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 098e946abd..9f9093b0bb 100644
--- a/parse.y
+++ b/parse.y
@@ -4451,6 +4451,8 @@ f_arglist : '(' f_args rparen
| f_args term
{
$$ = $1;
+ lex_state = EXPR_BEG;
+ command_start = TRUE;
}
;