1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (tokadd_string): newlines have no special meanings in

%w/%W, otherwise they are ignored only when interpolation is
  enabled.  [ruby-dev:21325]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-09-04 14:59:43 +00:00
parent 0d1896a88f
commit e168b64b03
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Thu Sep 4 23:59:40 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (tokadd_string): newlines have no special meanings in
%w/%W, otherwise they are ignored only when interpolation is
enabled. [ruby-dev:21325]
Wed Sep 4 19:38:25 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org> Wed Sep 4 19:38:25 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* ext/io/wait/.cvsignore: added. * ext/io/wait/.cvsignore: added.

View file

@ -2999,7 +2999,10 @@ tokadd_string(func, term, paren, nest)
} }
switch (c) { switch (c) {
case '\n': case '\n':
continue; if (func & STR_FUNC_QWORDS) break;
if (func & STR_FUNC_EXPAND) continue;
tokadd('\\');
break;
case '\\': case '\\':
if (func & STR_FUNC_ESCAPE) tokadd(c); if (func & STR_FUNC_ESCAPE) tokadd(c);