diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-11 21:23:24 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-11 21:23:24 +0000 |
commit | 5b0cef85ac90802cf7d0f9c8443c11054fc89d54 (patch) | |
tree | e20eafa8b27de4042de0a7ab0c3b93a7e6596b98 /parse.y | |
parent | b7db271c021c6482ed619cfff2d613c0540eeca4 (diff) |
merges r30805 and r30809 from trunk into ruby_1_9_2. fixes #4365
--
* 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/branches/ruby_1_9_2@31510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -3938,11 +3938,16 @@ words : tWORDS_BEG ' ' tSTRING_END $$ = NEW_ZARRAY(); /*% $$ = dispatch0(words_new); + $$ = dispatch1(array, $$); %*/ } | tWORDS_BEG word_list tSTRING_END { + /*%%%*/ $$ = $2; + /*% + $$ = dispatch1(array, $2); + %*/ } ; @@ -3988,11 +3993,16 @@ qwords : tQWORDS_BEG ' ' tSTRING_END $$ = NEW_ZARRAY(); /*% $$ = dispatch0(qwords_new); + $$ = dispatch1(array, $$); %*/ } | tQWORDS_BEG qword_list tSTRING_END { + /*%%%*/ $$ = $2; + /*% + $$ = dispatch1(array, $2); + %*/ } ; |