comparison lisp/textmodes/tex-mode.el @ 66097:94b9e76a6995

(tex-font-lock-keywords-2): Fix bug in \bf fontification.
author Richard M. Stallman <rms@gnu.org>
date Sat, 15 Oct 2005 13:38:59 +0000
parents cd4113a86403
children cdd77b8367b9
comparison
equal deleted inserted replaced
66096:59b6016b2dc3 66097:94b9e76a6995
574 ;; Old-style bf/em/it/sl. Stop at `\\' and un-escaped `&', for tables. 574 ;; Old-style bf/em/it/sl. Stop at `\\' and un-escaped `&', for tables.
575 (list (concat "\\\\\\(em\\|it\\|sl\\)\\>" args) 575 (list (concat "\\\\\\(em\\|it\\|sl\\)\\>" args)
576 2 '(tex-font-lock-append-prop 'italic) 'append) 576 2 '(tex-font-lock-append-prop 'italic) 'append)
577 ;; This is separate from the previous one because of cases like 577 ;; This is separate from the previous one because of cases like
578 ;; {\em foo {\bf bar} bla} where both match. 578 ;; {\em foo {\bf bar} bla} where both match.
579 (list (concat "\\\\\\(bf\\(series\\)?\\)\\>" args) 579 (list (concat "\\\\\\(bf\\(?:series\\)?\\)\\>" args)
580 3 '(tex-font-lock-append-prop 'bold) 'append))))) 580 3 '(tex-font-lock-append-prop 'bold) 'append)))))
581 "Gaudy expressions to highlight in TeX modes.") 581 "Gaudy expressions to highlight in TeX modes.")
582 582
583 (defun tex-font-lock-suscript (pos) 583 (defun tex-font-lock-suscript (pos)
584 (unless (or (memq (get-text-property pos 'face) 584 (unless (or (memq (get-text-property pos 'face)