auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. bb390fe0b594fdccf140b


From: Arash Esbati
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. bb390fe0b594fdccf140b77855af2cb3f7acdec6
Date: Fri, 30 Dec 2016 08:59:44 +0000 (UTC)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  bb390fe0b594fdccf140b77855af2cb3f7acdec6 (commit)
      from  48d397c9a0c0251ff86947149720bdecef68f799 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bb390fe0b594fdccf140b77855af2cb3f7acdec6
Author: Arash Esbati <address@hidden>
Date:   Fri Dec 30 09:13:22 2016 +0100

    Add fontification for varioref's referencing macros
    
    * font-latex.el (font-latex-built-in-keyword-classes): Add starred
    version to \vref macro.
    
    * style/varioref.el ("varioref"): Add fontification support for
    referencing macros.

diff --git a/font-latex.el b/font-latex.el
index 4a8195d..896c6af 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -325,7 +325,7 @@ variable `font-latex-fontify-sectioning'." ',num)
      'font-lock-constant-face 2 command)
     ("reference"
      (("nocite" "*{") ("cite" "*[[{") ("label" "{") ("pageref" "{")
-      ("vref" "{") ("eqref" "{") ("ref" "{") ("include" "{")
+      ("vref" "*{") ("eqref" "{") ("ref" "{") ("include" "{")
       ("input" "{") ("bibliography" "{") ("index" "{") ("glossary" "{")
       ("footnote" "[{") ("footnotemark" "[") ("footnotetext" "[{"))
      'font-lock-constant-face 2 command)
diff --git a/style/varioref.el b/style/varioref.el
index 7684ba4..1d87507 100644
--- a/style/varioref.el
+++ b/style/varioref.el
@@ -66,6 +66,19 @@
               2 LaTeX-label-list "}"))
            TeX-complete-list))
 
+     ;; Fontification
+     (when (and (fboundp 'font-latex-add-keywords)
+               (eq TeX-install-font-lock 'font-latex-setup))
+       (font-latex-add-keywords '(;; vref is already in font-latex.el,
+                                 ;; so don't add it here again
+                                 ("Vref"          "*{")
+                                 ("vpageref"      "*[[{")
+                                 ("vrefrange"     "*[{{")
+                                 ("Ref"           "{")
+                                 ("fullref"       "{")
+                                 ("vpagerefrange" "*[{{"))
+                               'reference))
+
      ;; Activate RefTeX reference style.
      (and LaTeX-reftex-ref-style-auto-activate
          (fboundp 'reftex-ref-style-activate)

-----------------------------------------------------------------------

Summary of changes:
 font-latex.el     |    2 +-
 style/varioref.el |   13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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