diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-16 01:27:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-16 01:27:47 +0000 |
commit | d25faa4ed2d850f086aff7ec2aa40c9f50e168db (patch) | |
tree | bee64ac03c53de81c2490dfb2b2a3f0f53a74226 /test | |
parent | 75755ef159caafd4d2623b81928b4f7c0791f209 (diff) | |
download | ruby-d25faa4ed2d850f086aff7ec2aa40c9f50e168db.tar.gz |
multiline heredoc identifier
* parse.y (parser_heredoc_identifier): reject multiline here
document identifier, which never matches single line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 4c4e840e5e..f3db9bcd48 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -746,7 +746,7 @@ eom end def test_heredoc_newline - assert_warn(/contains newline/) do + assert_warn(/ends with a newline/) do eval("<<\"EOS\n\"\nEOS\n") end end |