From 2ac460af94948caa8af7c13648a0d3a7e46eb446 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 5 Jul 2011 06:28:07 +0000 Subject: * parse.y (parser_here_document): should dispatch heredoc_end scanner event on an empty here document. fixed Bug#4543. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ripper/test_scanner_events.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/ripper/test_scanner_events.rb') diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 9005e46f4e..7d5bb3c814 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -66,6 +66,11 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase [[2, 0], :on_tstring_content, "heredoc\n"], [[3, 0], :on_heredoc_end, "EOS"]], Ripper.lex("<