summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--misc/ruby-mode.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4060c239d38..24e36db5e81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Sep 5 15:32:04 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-font-lock-maybe-here-docs): should not
+ search delimiter forward if found in backward.
+
Fri Sep 5 13:32:48 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/runner.rb: arguments should be keys.
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index f538714f44c..8d9df41a4a2 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -1085,8 +1085,8 @@ balanced expression is found."
(setq beg (point)))))
(if (and beg
(let ((end-match (ruby-here-doc-end-match)))
- (not (re-search-backward end-match beg t))
- (re-search-forward end-match nil t)))
+ (and (not (re-search-backward end-match beg t))
+ (re-search-forward end-match nil t))))
(progn
(set-match-data (list beg (point)))
t)