diff options
| author | Stefan Monnier | 2005-02-24 15:34:34 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-02-24 15:34:34 +0000 |
| commit | 6ecedb401fe93dea8683c055a4f5e1add93cbe65 (patch) | |
| tree | 1e472303268b8c93a45b5ca86ff39a0f9f7246d0 /lisp/textmodes | |
| parent | 2e20c83d7523a171e56297804eae631fbd70db7f (diff) | |
| download | emacs-6ecedb401fe93dea8683c055a4f5e1add93cbe65.tar.gz emacs-6ecedb401fe93dea8683c055a4f5e1add93cbe65.zip | |
(tex-font-lock-keywords-3): #n is atomic.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 4b878f4f240..d15b72c98ba 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands -*- coding: utf-8 -*- | 1 | ;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands -*- coding: utf-8 -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 1986, 1989, 1992, 1994, 1995, 1996, 1997, 1998, 1999, | 3 | ;; Copyright (C) 1985, 1986, 1989, 1992, 1994, 1995, 1996, 1997, 1998, 1999, |
| 4 | ;; 2002, 2003, 2004 Free Software Foundation, Inc. | 4 | ;; 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| 7 | ;; Keywords: tex | 7 | ;; Keywords: tex |
| @@ -602,7 +602,7 @@ An alternative value is \" . \", if you use a font with a narrow period." | |||
| 602 | ;; degenerate to nasty complexity (because we try to match the | 602 | ;; degenerate to nasty complexity (because we try to match the |
| 603 | ;; closing brace, which forces trying all matching combinations). | 603 | ;; closing brace, which forces trying all matching combinations). |
| 604 | (arg "{\\(?:[^{}\\]\\|\\\\.\\|{[^}]*}\\)*")) | 604 | (arg "{\\(?:[^{}\\]\\|\\\\.\\|{[^}]*}\\)*")) |
| 605 | `((,(concat "[_^] *\\([^\n\\{}]\\|" slash general "\\|" arg "}\\)") | 605 | `((,(concat "[_^] *\\([^\n\\{}#]\\|" slash general "\\|#[0-9]\\|" arg "}\\)") |
| 606 | (1 (tex-font-lock-suscript (match-beginning 0)) | 606 | (1 (tex-font-lock-suscript (match-beginning 0)) |
| 607 | append)))))) | 607 | append)))))) |
| 608 | "Experimental expressions to highlight in TeX modes.") | 608 | "Experimental expressions to highlight in TeX modes.") |
| @@ -1027,10 +1027,8 @@ Entering SliTeX mode runs the hook `text-mode-hook', then the hook | |||
| 1027 | 'tex-categorize-whitespace) | 1027 | 'tex-categorize-whitespace) |
| 1028 | (set (make-local-variable 'facemenu-add-face-function) | 1028 | (set (make-local-variable 'facemenu-add-face-function) |
| 1029 | (lambda (face end) | 1029 | (lambda (face end) |
| 1030 | (let ((face-text (cdr (assq face tex-face-alist)))) | 1030 | (or (cdr (assq face tex-face-alist)) |
| 1031 | (if face-text | 1031 | (error "Face %s not configured for %s mode" face mode-name)))) |
| 1032 | face-text | ||
| 1033 | (error "Face %s not configured for %s mode" face mode-name))))) | ||
| 1034 | (set (make-local-variable 'facemenu-end-add-face) "}") | 1032 | (set (make-local-variable 'facemenu-end-add-face) "}") |
| 1035 | (set (make-local-variable 'facemenu-remove-face-function) t) | 1033 | (set (make-local-variable 'facemenu-remove-face-function) t) |
| 1036 | (set (make-local-variable 'font-lock-defaults) | 1034 | (set (make-local-variable 'font-lock-defaults) |