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

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

[elpa] externals/auctex 0fd9848 35/80: Improve style/mflogo.el


From: Tassilo Horn
Subject: [elpa] externals/auctex 0fd9848 35/80: Improve style/mflogo.el
Date: Wed, 16 Oct 2019 11:07:12 -0400 (EDT)

branch: externals/auctex
commit 0fd9848c5339dcd84152956e9856aa720e99e7c3
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    Improve style/mflogo.el
    
    * style/mflogo.el ("mflogo"): Ask for Text when \textlogo is
    invoked.  Change \logofamily into a declaration.  Add missing
    macros \MF and \MP.  Adjust fontification for \textlogo and
    \logofamily.
---
 style/mflogo.el | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/style/mflogo.el b/style/mflogo.el
index 1d4b96d..52fa44b 100644
--- a/style/mflogo.el
+++ b/style/mflogo.el
@@ -1,5 +1,7 @@
 ;;; mflogo.el --- AUCTeX style for `mflogo.sty'
 
+;; Copyright (C) 2012, 2019 Free Software Foundation, Inc.
+
 ;; Author: Mads Jensen <address@hidden>
 ;; Maintainer: address@hidden
 ;; Created: 2011-02-02
@@ -37,15 +39,18 @@
  "mflogo"
  (lambda ()
    (TeX-add-symbols
-    '("textlogo" 1)
-    '("logofamily" 1))
+    '("textlogo"   "Text")
+    '("logofamily" -1)
+    '("MF"          0)
+    '("MP"          0))
 
    ;; Fontification
    (when (and (featurep 'font-latex)
              (eq TeX-install-font-lock 'font-latex-setup))
-     (font-latex-add-keywords '(("logofamily" "{")
-                               ("textlogo" "{"))
-                             'function)))
+     (font-latex-add-keywords '(("textlogo" "{"))
+                             'type-command)
+     (font-latex-add-keywords '(("logofamily" ""))
+                             'type-declaration)))
  LaTeX-dialect)
 
 (defvar LaTeX-mflogo-package-options nil



reply via email to

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