summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-05 00:46:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-05 00:46:08 +0000
commitcbdac1eaf69e52d353e85951f6667b6332abcff7 (patch)
tree06f3729d376fe2bcdc16cca20f2d4ef43cb7c040 /parse.y
parent1e6a1012374367b812e98eedf940feb2e3068153 (diff)
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.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 13a0f480ec..924ec57260 100644
--- a/parse.y
+++ b/parse.y
@@ -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;