summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-06 03:15:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-06 03:15:08 +0000
commit8d6ccfd4326b086c7b569df42b793739da8424e9 (patch)
tree5343a3509de0d13322782c2618c00fcc7e6b6850 /parse.y
parentcea105d87318c075977666c14003c6c6941bd035 (diff)
* parse.y (opt_block_param): command can start just after block param
definition. [ruby-list:44479] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index bde4c1d..8fd4607 100644
--- a/parse.y
+++ b/parse.y
@@ -1765,14 +1765,17 @@ opt_block_var : none
| '|' /* none */ '|'
{
$$ = (NODE*)1;
+ command_start = Qtrue;
}
| tOROP
{
$$ = (NODE*)1;
+ command_start = Qtrue;
}
| '|' block_var '|'
{
$$ = $2;
+ command_start = Qtrue;
}
;