diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-07 08:40:54 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-06-07 08:40:54 +0000 |
commit | 1b6b6ef2d645e99b66e775c9a5ee97e201e141a1 (patch) | |
tree | 049731b63e0c21a6ff42e160d3ce59a84153ff8a | |
parent | 4c6b76c1e42ebc63bf3452ba3c76b2c1fca73c27 (diff) | |
download | ruby-1b6b6ef2d645e99b66e775c9a5ee97e201e141a1.tar.gz |
* parse.y (yylex): incomplete fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |