aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-11-14 00:37:12 +0000
committerStefan Monnier2004-11-14 00:37:12 +0000
commit6ce66ffe7435eff71993cee739ee9da3dd702f4d (patch)
treee4b405c865b3d6cfe7b368ee1ad3f71d678a6d50
parentb393528900a561200b14bd3c75d63f3bca1992ef (diff)
downloademacs-6ce66ffe7435eff71993cee739ee9da3dd702f4d.tar.gz
emacs-6ce66ffe7435eff71993cee739ee9da3dd702f4d.zip
(font-lock-fontify-syntactically-region): Fix last fix
so it doesn't forget to highlight the beginning of the region either.
-rw-r--r--lisp/font-lock.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index bfd5b7cce69..bdf31881cc4 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1295,15 +1295,15 @@ START should be at the beginning of a line."
1295 ;; Find each interesting place between here and `end'. 1295 ;; Find each interesting place between here and `end'.
1296 (while 1296 (while
1297 (progn 1297 (progn
1298 (setq state (parse-partial-sexp (point) end nil nil state
1299 'syntax-table))
1300 (when (or (nth 3 state) (nth 4 state)) 1298 (when (or (nth 3 state) (nth 4 state))
1301 (setq face (funcall font-lock-syntactic-face-function state)) 1299 (setq face (funcall font-lock-syntactic-face-function state))
1302 (setq beg (max (nth 8 state) start)) 1300 (setq beg (max (nth 8 state) start))
1303 (setq state (parse-partial-sexp (point) end nil nil state 1301 (setq state (parse-partial-sexp (point) end nil nil state
1304 'syntax-table)) 1302 'syntax-table))
1305 (when face (put-text-property beg (point) 'face face))) 1303 (when face (put-text-property beg (point) 'face face)))
1306 (< (point) end))))) 1304 (< (point) end))
1305 (setq state (parse-partial-sexp (point) end nil nil state
1306 'syntax-table)))))
1307 1307
1308;;; End of Syntactic fontification functions. 1308;;; End of Syntactic fontification functions.
1309 1309