diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-01 09:42:38 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-01 09:42:38 +0000 |
commit | 5e6634ce67281e7142e61fa5ba18265ff894c9e5 (patch) | |
tree | 2e4f554d0934713e09fe4c4cc9ddd3b48a9dee2f /parse.y | |
parent | 2b98e10419af64787e8fd9ab5c0ff9ece7d23c50 (diff) | |
download | ruby-5e6634ce67281e7142e61fa5ba18265ff894c9e5.tar.gz |
* parse.y (tokadd_string): ignore backslashed spaces in %w.
* enum.c (enum_find): do not use rb_eval_cmd(); should not accept
a string for if_none.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2836,6 +2836,9 @@ tokadd_string(func, term, paren) if (func & STR_FUNC_ESCAPE) tokadd('\\'); c = read_escape(); } + else if ((func & STR_FUNC_QWORDS) && ISSPACE(c)) { + /* ignore backslashed spaces in %w */ + } else if (c != term && !(paren && c == paren)) { tokadd('\\'); } |