diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-06 03:18:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-06 03:18:44 +0000 |
commit | b1986003bdcee30cf4e52c5638d3bc197195952b (patch) | |
tree | eb7e2fdb5fdde5ed023d4a5d9f2569dd7668a4ba /parse.y | |
parent | 58195557b203972799cf84c3b224bf144bf5756f (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.y | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); + %*/ } ; |