diff options
| author | Karoly Lorentey | 2004-11-13 18:34:40 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-11-13 18:34:40 +0000 |
| commit | e417405015c93c81641f5c4a33ec898b5c353772 (patch) | |
| tree | 017a980c35c8a71c372304418d151e3826f88636 /lisp/font-lock.el | |
| parent | f590a2a442d19f3a74d7bbd02bbcb4e3239f2327 (diff) | |
| parent | 68d1b30d251b4771f739d20f507cd9523ae3919b (diff) | |
| download | emacs-e417405015c93c81641f5c4a33ec898b5c353772.tar.gz emacs-e417405015c93c81641f5c4a33ec898b5c353772.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-673
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-674
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-675
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-676
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-677
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-678
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-679
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-680
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-681
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-682
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-683
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-684
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-685
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-686
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-687
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-688
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-689
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-690
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-691
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-692
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-693
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-69
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-70
Update from CVS
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-71
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-267
Diffstat (limited to 'lisp/font-lock.el')
| -rw-r--r-- | lisp/font-lock.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index d0c749bf385..8a7e1c28cf4 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; font-lock.el --- Electric font lock mode | 1 | ;;; font-lock.el --- Electric font lock mode |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999, 2000, 2001, 02, 2003, 2004 | 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: jwz, then rms, then sm | 6 | ;; Author: jwz, then rms, then sm |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -1289,20 +1289,20 @@ START should be at the beginning of a line." | |||
| 1289 | (if loudly (message "Fontifying %s... (syntactically...)" (buffer-name))) | 1289 | (if loudly (message "Fontifying %s... (syntactically...)" (buffer-name))) |
| 1290 | (goto-char start) | 1290 | (goto-char start) |
| 1291 | ;; | 1291 | ;; |
| 1292 | ;; Find the state at the `beginning-of-line' before `start'. | 1292 | ;; Find the `start' state. |
| 1293 | (setq state (or ppss (syntax-ppss start))) | 1293 | (setq state (or ppss (syntax-ppss start))) |
| 1294 | ;; | 1294 | ;; |
| 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)) | ||
| 1298 | (when (or (nth 3 state) (nth 4 state)) | 1300 | (when (or (nth 3 state) (nth 4 state)) |
| 1299 | (setq face (funcall font-lock-syntactic-face-function state)) | 1301 | (setq face (funcall font-lock-syntactic-face-function state)) |
| 1300 | (setq beg (max (nth 8 state) start)) | 1302 | (setq beg (max (nth 8 state) start)) |
| 1301 | (setq state (parse-partial-sexp (point) end nil nil state | 1303 | (setq state (parse-partial-sexp (point) end nil nil state |
| 1302 | 'syntax-table)) | 1304 | 'syntax-table)) |
| 1303 | (when face (put-text-property beg (point) 'face face))) | 1305 | (when face (put-text-property beg (point) 'face face))) |
| 1304 | (setq state (parse-partial-sexp (point) end nil nil state | ||
| 1305 | 'syntax-table)) | ||
| 1306 | (< (point) end))))) | 1306 | (< (point) end))))) |
| 1307 | 1307 | ||
| 1308 | ;;; End of Syntactic fontification functions. | 1308 | ;;; End of Syntactic fontification functions. |
| @@ -2003,5 +2003,5 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item." | |||
| 2003 | 2003 | ||
| 2004 | (provide 'font-lock) | 2004 | (provide 'font-lock) |
| 2005 | 2005 | ||
| 2006 | ;;; arch-tag: 682327e4-64d8-4057-b20b-1fbb9f1fc54c | 2006 | ;; arch-tag: 682327e4-64d8-4057-b20b-1fbb9f1fc54c |
| 2007 | ;;; font-lock.el ends here | 2007 | ;;; font-lock.el ends here |