diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-04-29 00:24:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-04-29 12:49:59 +0900 |
commit | 330b376133e00ae418bcf01e641e127df01fbc28 (patch) | |
tree | db843d9f0afd5d6334b422fcc5a48aee38ae14ce /NEWS | |
parent | 69cad44facc4dedfe181c6a669b63fb9da2aa673 (diff) | |
download | ruby-330b376133e00ae418bcf01e641e127df01fbc28.tar.gz |
parse.y: fix here-doc identifier with newline
* parse.y (heredoc_identifier): quoted here-document identifier
must end within the same line.
the only corner case that here-document identifier can contain a
newline is that the closing qoute is placed at the beginning of
the next line, and has been warned since 2.4.
```ruby
<<"EOS
" # warning: here document identifier ends with a newline
EOS
```
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -42,6 +42,12 @@ sufficient information, see the ChangeLog file or Redmine * Setting <code>$,</code> to non-nil value is warned now. Use of it in Array#join is warned too. +* Quoted here-document identifier must end within the same line. + + <<"EOS + " # This has been warned since 2.4 + EOS + === Core classes updates (outstanding ones only) Enumerable:: |