From 5b341c7e2c994bebb543d6668262d2c1435eb57b Mon Sep 17 00:00:00 2001 From: Simon Marshall Date: Mon, 15 Sep 1997 09:03:45 +0000 Subject: [PATCH] Don't fontify \item like \it. --- lisp/font-lock.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 4f183cd4230..adac03d3c1e 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -2182,9 +2182,9 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item." '(quote bold-italic) 'keep) ;; ;; Old-style bf/em/it/sl. Stop at `\\' and un-escaped `&', for tables. - (list (concat "\\\\\\(\\(bf\\)\\|em\\|it\\(em\\)?\\|sl\\)\\>" + (list (concat "\\\\\\(\\(bf\\)\\|em\\|it\\|sl\\)\\>" "\\(\\([^}&\\]\\|\\\\[^\\]\\)+\\)") - 4 '(if (match-beginning 2) 'bold 'italic) 'keep) + 3 '(if (match-beginning 2) 'bold 'italic) 'keep) )))) "Gaudy expressions to highlight in TeX modes.") -- 2.39.5