summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-06 03:18:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-06 03:18:44 +0000
commitb1986003bdcee30cf4e52c5638d3bc197195952b (patch)
treeeb7e2fdb5fdde5ed023d4a5d9f2569dd7668a4ba /parse.y
parent58195557b203972799cf84c3b224bf144bf5756f (diff)
* parse.y (words, qwords): dispatch array events. based on a
patch from Michael Edgar. [Bug #4365]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y10
1 files changed, 10 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index e0bb2d8f5c..0e4a735dc6 100644
--- a/parse.y
+++ b/parse.y
@@ -3949,11 +3949,16 @@ words : tWORDS_BEG ' ' tSTRING_END
$$ = NEW_ZARRAY();
/*%
$$ = dispatch0(words_new);
+ $$ = dispatch1(array, $$);
%*/
}
| tWORDS_BEG word_list tSTRING_END
{
+ /*%%%*/
$$ = $2;
+ /*%
+ $$ = dispatch1(array, $2);
+ %*/
}
;
@@ -3999,11 +4004,16 @@ qwords : tQWORDS_BEG ' ' tSTRING_END
$$ = NEW_ZARRAY();
/*%
$$ = dispatch0(qwords_new);
+ $$ = dispatch1(array, $$);
%*/
}
| tQWORDS_BEG qword_list tSTRING_END
{
+ /*%%%*/
$$ = $2;
+ /*%
+ $$ = dispatch1(array, $2);
+ %*/
}
;