diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-04-29 13:45:32 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-04-29 13:47:20 +0900 |
commit | 1432471a759dc0cbc80c53766894dba45e6da887 (patch) | |
tree | 200f87a1d197dacdacba52f0e74957bc25268821 /doc | |
parent | 23375c8b81e07644517e5ad985b2fbf5e1b5d545 (diff) |
Disallow also CR in here-doc identifier
* parse.y (heredoc_identifier): CR in here-document identifier
might or might not result in a syntax error, by the EOL code.
make a syntax error regardless of the EOL code.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/syntax/literals.rdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc index 00bc4f89d6..35a2f01ff1 100644 --- a/doc/syntax/literals.rdoc +++ b/doc/syntax/literals.rdoc @@ -256,7 +256,7 @@ behaves like Kernel#`: HEREDOC When surrounding with quotes, any characters but that quote and newline -can be used as the identifier. +(CR and/or LF) can be used as the identifier. To call a method on a heredoc place it after the opening identifier: |