emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex e351a3a 26/28: Add missing commands `\nameref*'


From: Tassilo Horn
Subject: [elpa] externals/auctex e351a3a 26/28: Add missing commands `\nameref*' and `\Nameref'.
Date: Fri, 07 Aug 2015 15:59:28 +0000

branch: externals/auctex
commit e351a3a6ad8bcb15c959d77227849f50cd5d8de9
Author: Arash Esbati <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Add missing commands `\nameref*' and `\Nameref'.
    
    * style/nameref.el ("nameref"): Add missing commands `\nameref*'
    and `\Nameref'.
    
    Signed-off-by: Mosè Giordano <address@hidden>
---
 ChangeLog        |    3 +++
 style/nameref.el |   19 ++++++++++++-------
 2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5265019..8ff7097 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-07-21  Arash Esbati  <address@hidden>
 
+       * style/nameref.el ("nameref"): Add missing commands `\nameref*'
+       and `\Nameref'.
+
        * style/textpos.el ("textpos"): Fix the name of the provided env's
        which is `textblock' and not `textpos'.
 
diff --git a/style/nameref.el b/style/nameref.el
index d09ddbe..49e7202 100644
--- a/style/nameref.el
+++ b/style/nameref.el
@@ -1,6 +1,6 @@
 ;;; nameref.el --- AUCTeX style for `nameref.sty'
 
-;; Copyright (C) 2013 Free Software Foundation, Inc.
+;; Copyright (C) 2013, 2015 Free Software Foundation, Inc.
 
 ;; Author: Mads Jensen <address@hidden>
 ;; Maintainer: address@hidden
@@ -33,17 +33,22 @@
  "nameref"
  (lambda ()
    (TeX-add-symbols
-    '("nameref" TeX-arg-ref))
-   
+    '("nameref" TeX-arg-ref)
+    '("nameref*" TeX-arg-ref)
+    '("Nameref" TeX-arg-ref))
+
    (setq TeX-complete-list
-         (append '(("\\\\nameref{\\([^{}\n\r\\%,]*\\)" 1 LaTeX-label-list "}"))
-                 TeX-complete-list))
-   
+        (append
+         '(("\\\\\\(?:N\\|n\\)ameref\\*?{\\([^{}\n\r\\%,]*\\)" 1 
LaTeX-label-list "}"))
+         TeX-complete-list))
+
    ;, Fontification
    (when (and (fboundp 'font-latex-add-keywords)
              (fboundp 'font-latex-set-syntactic-keywords)
              (eq TeX-install-font-lock 'font-latex-setup))
-     (font-latex-add-keywords '(("nameref" "{")) 'reference)))
+     (font-latex-add-keywords '(("nameref" "*{")
+                               ("Nameref" "{"))
+                             'reference)))
  LaTeX-dialect)
 
 (defvar LaTeX-nameref-package-options nil



reply via email to

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