summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--parse.y2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 74668f42e1..189e37ef5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/parse.y b/parse.y
index c9337bce3a..9ea4954368 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);
}