diff options
| author | Richard M. Stallman | 1993-08-05 20:47:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-08-05 20:47:30 +0000 |
| commit | d5d9ce9182688baf6e660edd530144cdf1e6c3db (patch) | |
| tree | 2d810b9f506d4aa01aeb38fa1c7661d1f1315a4a | |
| parent | af50f9e58506b341fda37166a4a32c3f8aa05214 (diff) | |
| download | emacs-d5d9ce9182688baf6e660edd530144cdf1e6c3db.tar.gz emacs-d5d9ce9182688baf6e660edd530144cdf1e6c3db.zip | |
(font-lock-fontify-region): Handle comment-start-skip = nil.
| -rw-r--r-- | lisp/font-lock.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index c2a3a4dfbd8..c6f28b0739e 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -166,7 +166,10 @@ slow things down!") | |||
| 166 | ;; Find each interesting place between here and END. | 166 | ;; Find each interesting place between here and END. |
| 167 | (while (and (< (point) end) | 167 | (while (and (< (point) end) |
| 168 | (setq prev (point) prevstate state) | 168 | (setq prev (point) prevstate state) |
| 169 | (re-search-forward (concat "\\s\"\\|" comment-start-skip) end t) | 169 | (re-search-forward (if comment-start-skip |
| 170 | (concat "\\s\"\\|" comment-start-skip) | ||
| 171 | "\\s\"") | ||
| 172 | end t) | ||
| 170 | ;; Clear out the fonts of what we skip over. | 173 | ;; Clear out the fonts of what we skip over. |
| 171 | (progn (remove-text-properties prev (point) '(face nil)) t) | 174 | (progn (remove-text-properties prev (point) '(face nil)) t) |
| 172 | ;; Verify the state at that place | 175 | ;; Verify the state at that place |