summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-01 09:18:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-01 09:18:11 +0000
commiteb9266867664d2ba05190d876328a4db9af64220 (patch)
tree6f7bcd6f2beee4a3061b59e5885efed0605edb00 /parse.y
parentf2c6107ad4b076fcec7077830033f505aae9c435 (diff)
downloadruby-eb9266867664d2ba05190d876328a4db9af64220.tar.gz
ruby-eb9266867664d2ba05190d876328a4db9af64220.tar.xz
ruby-eb9266867664d2ba05190d876328a4db9af64220.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index a9416a7ab..5580500f9 100644
--- a/parse.y
+++ b/parse.y
@@ -859,6 +859,10 @@ aref_args : none
{
$$ = NEW_LIST($1);
}
+ | block_call opt_nl
+ {
+ $$ = NEW_LIST($1);
+ }
| args opt_nl
{
$$ = $1;
@@ -888,6 +892,10 @@ aref_args : none
opt_call_args : none
| call_args opt_nl
+ | block_call opt_nl
+ {
+ $$ = NEW_LIST($1);
+ }
call_args : command_call
{