From 448d1d147d3a0b636323d0c8d80f53a399d445af Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 28 Nov 2015 10:33:58 +0000 Subject: parse.y: last content of heredoc * parse.y (parser_here_document): store dispatched result of on_tstring_content at the last fragment of a here document. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ripper/test_sexp.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ripper') diff --git a/test/ripper/test_sexp.rb b/test/ripper/test_sexp.rb index 2c5bcdacde..8fc17fdd4a 100644 --- a/test/ripper/test_sexp.rb +++ b/test/ripper/test_sexp.rb @@ -33,6 +33,11 @@ class TestRipper::Sexp < Test::Unit::TestCase assert_equal '(?a(b|\g))', search_sexp(:@tstring_content, search_sexp(:regexp_literal, sexp))[1] end + def test_heredoc_content + sexp = Ripper.sexp("<