diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-19 16:20:24 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-19 16:20:24 +0000 |
commit | 24b3a3e7489181bb2fa1fd86bd93793a8cef6829 (patch) | |
tree | 2d4d7ff2cc30dcf6eb5e191299622b889644842b /parse.y | |
parent | 04f27f5e8ddbbc06544d96df4097e0300685a1cc (diff) |
* parse.y (str_extend): should not terminate string interpolation
with newlines in here-docs and newline terminated strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2901,7 +2901,7 @@ here_document(term, indent) lex_pbeg = lex_p = RSTRING(line)->ptr; lex_pend = lex_p + RSTRING(line)->len; retry: - switch (parse_string(term, '\n', '\n')) { + switch (parse_string(term, '\n', 0)) { case tSTRING: case tXSTRING: rb_str_cat2(yylval.val, "\n"); @@ -4038,6 +4038,7 @@ str_extend(list, term) newtok(); return list; } + case '\n': tokadd(c); break; } |