diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-16 07:44:56 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-16 07:44:56 +0000 |
commit | fe2900b515df376d1c1f7c7d6d935f7026430374 (patch) | |
tree | 530fb07bcab1ec7dde256a8cf7af74a609d16db7 /parse.y | |
parent | 3ff952f8c94d900bff866d3aa4b6ac56f628046f (diff) |
* parse.y (parser_yylex): should set command_start after block
starting "do"s and braces. [ruby-core:10916]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4146,6 +4146,7 @@ yylex() COND_PUSH(0); CMDARG_PUSH(0); lex_state = EXPR_BEG; + if (c != tLBRACE) command_start = Qtrue; return c; case '\\': @@ -4449,6 +4450,7 @@ yylex() return kw->id[0]; } if (kw->id[0] == kDO) { + command_start = Qtrue; if (COND_P()) return kDO_COND; if (CMDARG_P() && state != EXPR_CMDARG) return kDO_BLOCK; |