diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-27 00:07:05 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-27 00:40:30 +0900 |
commit | a43c637660cd3c893401e899014d721d2fa2a5b4 (patch) | |
tree | b796e2c8dbb07a7166405c8a21ea618ea7cf1898 /test | |
parent | 4f2a7b800110346292890e3bed41b37f3f58ab0b (diff) |
parse.y: broke the terminator condition down
* parse.y (here_document): broke the terminator condition down
into each piece, the positional condition, resetting the
dedented here-document indentation, and matching identifier.
suppress a false warning by icc.
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index e640262d90..4e52bc4a72 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -753,6 +753,8 @@ e" \ TEXT end; + + assert_equal(" TEXT\n", eval("<<~eos\n" " \\\n" "TEXT\n" "eos\n")) end def test_lineno_after_heredoc |