diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-04 14:59:43 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-04 14:59:43 +0000 |
| commit | a0b6fbc877cff7dd194a81b84fbb4336e6ce015c (patch) | |
| tree | e18042665f2b24b783eba250faf17fd9c7b3c17e | |
| parent | 437aeabb13078d601956311d3e40d02889f92ff7 (diff) | |
| download | ruby-a0b6fbc877cff7dd194a81b84fbb4336e6ce015c.tar.gz ruby-a0b6fbc877cff7dd194a81b84fbb4336e6ce015c.tar.xz ruby-a0b6fbc877cff7dd194a81b84fbb4336e6ce015c.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@4496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | parse.y | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -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> * ext/io/wait/.cvsignore: added. @@ -2999,7 +2999,10 @@ tokadd_string(func, term, paren, nest) } switch (c) { case '\n': - continue; + if (func & STR_FUNC_QWORDS) break; + if (func & STR_FUNC_EXPAND) continue; + tokadd('\\'); + break; case '\\': if (func & STR_FUNC_ESCAPE) tokadd(c); |
