From 1b6b6ef2d645e99b66e775c9a5ee97e201e141a1 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 7 Jun 2001 08:40:54 +0000 Subject: [PATCH] * parse.y (yylex): incomplete fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parse.y b/parse.y index 0ae00da19e..e74da582c0 100644 --- a/parse.y +++ b/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)