summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-20 06:15:53 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-08-20 06:15:53 +0000
commitdf856da4812b9a33e2677e0269a81552e61a889a (patch)
treee9eebcf8350f85a2314ed6004c08fb12bae963f3 /parse.y
parenta469664fda324f5a934c995f27facce7804600d4 (diff)
downloadruby-df856da4812b9a33e2677e0269a81552e61a889a.tar.gz
ruby-df856da4812b9a33e2677e0269a81552e61a889a.tar.xz
ruby-df856da4812b9a33e2677e0269a81552e61a889a.zip
* parse.y (tokadd_escape): escaped backslashes too much.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index c9337bce3..9ea495436 100644
--- a/parse.y
+++ b/parse.y
@@ -2401,7 +2401,7 @@ tokadd_escape(term)
return -1;
default:
- if (c == '/' && c != term)
+ if (c != '/' || c != term)
tokadd('\\');
tokadd(c);
}