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 | e168b64b03403fb4efbd8dcbbdaeed83710b4d39 (patch) | |
tree | e18042665f2b24b783eba250faf17fd9c7b3c17e /parse.y | |
parent | 0d1896a88fe091000ce0d9c8ef3cf7ef1e2e991b (diff) | |
download | ruby-e168b64b03403fb4efbd8dcbbdaeed83710b4d39.tar.gz |
* 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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |