branch: externals/auctex
commit 0fd9848c5339dcd84152956e9856aa720e99e7c3
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
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 <[email protected]>
;; Maintainer: [email protected]
;; 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