diff options
| author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-30 18:02:37 +0000 |
|---|---|---|
| committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-30 18:02:37 +0000 |
| commit | aff22927c27fca9e5c115173d6fa6adc152a04ec (patch) | |
| tree | b2ca14effc47d0241490ed549368ef526bbab253 | |
| parent | 3c5b89d5cb7e3e44eac4a28c5e6b1a9ca387038b (diff) | |
| download | ruby-aff22927c27fca9e5c115173d6fa6adc152a04ec.tar.gz ruby-aff22927c27fca9e5c115173d6fa6adc152a04ec.tar.xz ruby-aff22927c27fca9e5c115173d6fa6adc152a04ec.zip | |
* parse.y (literal_concat_gen): NODE_DSTR was incorrectly handled as
NODE_STR. [ruby-dev:38968]
* bootstraptest/test_syntax.rb: add a test for above.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | bootstraptest/test_syntax.rb | 3 | ||||
| -rw-r--r-- | parse.y | 4 |
3 files changed, 11 insertions, 3 deletions
@@ -1,3 +1,10 @@ +Fri Jul 31 02:57:39 2009 Yusuke Endoh <mame@tsg.ne.jp> + + * parse.y (literal_concat_gen): NODE_DSTR was incorrectly handled as + NODE_STR. [ruby-dev:38968] + + * bootstraptest/test_syntax.rb: add a test for above. + Fri Jul 31 00:55:48 2009 Yusuke Endoh <mame@tsg.ne.jp> * test/ruby/test_module.rb (test_ancestors, test_included_modules): diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb index a9005a429..131625ea6 100644 --- a/bootstraptest/test_syntax.rb +++ b/bootstraptest/test_syntax.rb @@ -828,3 +828,6 @@ assert_normal_exit %q{ p a.compact! } +assert_equal 'ok', %q{ + "#{}""#{}ok" +}, '[ruby-dev:38968]' @@ -7833,9 +7833,7 @@ literal_concat_gen(struct parser_params *parser, NODE *head, NODE *tail) head = tail; } else { - nd_set_type(tail, NODE_ARRAY); - tail->nd_head = NEW_STR(tail->nd_lit); - list_concat(head, tail); + list_concat(head, NEW_ARRAY(tail)); } break; |
