diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-05 00:46:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-05 00:46:08 +0000 |
commit | cbdac1eaf69e52d353e85951f6667b6332abcff7 (patch) | |
tree | 06f3729d376fe2bcdc16cca20f2d4ef43cb7c040 /parse.y | |
parent | 1e6a1012374367b812e98eedf940feb2e3068153 (diff) | |
download | ruby-cbdac1eaf69e52d353e85951f6667b6332abcff7.tar.gz |
parse.y: fix lex_state after tLABEL_END
* parse.y (parser_yylex): fix lex_state after tLABEL_END, should
be EXPR_LABELARG to be followed by "paren with arg".
[ruby-core:66705] [Feature #4935]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7842,7 +7842,7 @@ parser_yylex(struct parser_params *parser) if (token == tSTRING_END || token == tREGEXP_END || token == tLABEL_END) { rb_gc_force_recycle((VALUE)lex_strterm); lex_strterm = 0; - lex_state = EXPR_END; + lex_state = token == tLABEL_END ? EXPR_LABELARG : EXPR_END; } } return token; |