auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] [elpa] externals/auctex 73cd17c 11/43: Add fontification


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex 73cd17c 11/43: Add fontification for some core macros
Date: Tue, 20 Mar 2018 11:34:07 -0400 (EDT)

branch: externals/auctex
commit 73cd17c06f898d5008be59e14ba0126bd5bf5620
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]