branch: externals/auctex
commit 73cd17c06f898d5008be59e14ba0126bd5bf5620
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Add fontification for some core macros
* font-latex.el (font-latex-built-in-keyword-classes): Fontify
core macros \marginpar (reference), \LaTeXe (function) and
ibitem (textual).
---
font-latex.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/font-latex.el b/font-latex.el
index c3dda00..7a6d9da 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -327,7 +327,8 @@ variable `font-latex-fontify-sectioning'." ',num)
(("nocite" "*{") ("cite" "*[[{") ("label" "{") ("pageref" "{")
("vref" "*{") ("eqref" "{") ("ref" "{") ("include" "{")
("input" "{") ("bibliography" "{") ("index" "{") ("glossary" "{")
- ("footnote" "[{") ("footnotemark" "[") ("footnotetext" "[{"))
+ ("footnote" "[{") ("footnotemark" "[") ("footnotetext" "[{")
+ ("marginpar" "[{"))
font-lock-constant-face 2 command)
("function"
(("begin" "{") ("end" "{") ("pagenumbering" "{")
@@ -344,7 +345,7 @@ variable `font-latex-fontify-sectioning'." ',num)
;; XXX: Should macros without arguments rather be listed in a
;; separate category with 'noarg instead of 'command handling?
("enspace" "") ("enskip" "") ("quad" "") ("qquad" "") ("nonumber" "")
- ("centering" "") ("TeX" "") ("LaTeX" ""))
+ ("centering" "") ("TeX" "") ("LaTeX" "") ("LaTeXe" ""))
font-lock-function-name-face 2 command)
("sectioning-0"
(("part" "*[{"))
@@ -385,7 +386,7 @@ variable `font-latex-fontify-sectioning'." ',num)
2 command)
("slide-title" () font-latex-slide-title-face 2 command)
("textual"
- (("item" "[") ("title" "{") ("author" "{") ("date" "{")
+ (("item" "[") ("bibitem" "[{") ("title" "{") ("author" "{") ("date" "{")
("thanks" "{") ("address" "{") ("caption" "[{")
("textsuperscript" "{") ("textsubscript" "{") ("verb" "*"))
font-lock-type-face 2 command)
_______________________________________________
auctex-diffs mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-diffs