From 0e4a0a1a85d8d1c37997f14176bb841601136ae8 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 20 Dec 2015 02:43:34 +0000 Subject: parse.y: labeled heredoc * parse.y (parser_yylex): allow here documents in labeled argument. [ruby-core:72396] [Bug #11849] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_syntax.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/ruby/test_syntax.rb') diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 77cb3ea54e..b8f1619ae2 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -342,6 +342,12 @@ WARN assert_valid_syntax('{label: %w(*)}', bug11812) end + def test_heredoc_after_label + bug11849 = '[ruby-core:72396] [Bug #11849]' + assert_valid_syntax("{label:<