* parse.y (tokadd_escape): escaped backslashes too much.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2001-08-20 06:15:53 +00:00
parent c786866812
commit ba294ad060
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon Aug 20 15:14:27 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (tokadd_escape): escaped backslashes too much.
Mon Aug 20 13:24:08 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* range.c (range_step): 'iter' here should be an array.

View File

@ -2401,7 +2401,7 @@ tokadd_escape(term)
return -1;
default:
if (c == '/' && c != term)
if (c != '/' || c != term)
tokadd('\\');
tokadd(c);
}