mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (yylex): incomplete fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4c6b76c1e4
commit
1b6b6ef2d6
1 changed files with 2 additions and 1 deletions
3
parse.y
3
parse.y
|
@ -3723,7 +3723,8 @@ yylex()
|
|||
}
|
||||
if (kw->id[0] == kDO) {
|
||||
if (COND_P()) return kDO_COND;
|
||||
if (CMDARG_P()) return kDO_BLOCK;
|
||||
if (CMDARG_P() && state != EXPR_CMDARG)
|
||||
return kDO_BLOCK;
|
||||
return kDO;
|
||||
}
|
||||
if (state == EXPR_BEG)
|
||||
|
|
Loading…
Reference in a new issue