branch: externals/auctex
commit 7cd329f06daf166fb5fb6a6e3959935c786c91a9
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Add fontification support for ragged2e macros
* style/ragged2e.el ("ragged2e"): Add provided macros to function
keywords class. This is in line with decision in `font-latex.el'
for corresponding kernel macros.
---
style/ragged2e.el | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/style/ragged2e.el b/style/ragged2e.el
index 2b7050e..fd6fd1b 100644
--- a/style/ragged2e.el
+++ b/style/ragged2e.el
@@ -1,6 +1,6 @@
;;; ragged2e.el --- AUCTeX style for `ragged2e.sty'
-;; Copyright (C) 2011, 2015 Free Software Foundation, Inc.
+;; Copyright (C) 2011, 2015, 2019 Free Software Foundation, Inc.
;; Author: Mads Jensen <[email protected]>
;; Created: 2011-04-16
@@ -54,10 +54,19 @@
;; \justifying
"JustifyingParfillskip" "JustifyingParindent")
- (TeX-run-style-hooks "footmisc" "everysel"))
+ (TeX-run-style-hooks "footmisc" "everysel")
+
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("Centering" "")
+ ("justifying" "")
+ ("RaggedRight" "")
+ ("RaggedLeft" ""))
+ 'function)))
LaTeX-dialect)
-(defvar LaTeX-ragged2e-package-options
+(defvar LaTeX-ragged2e-package-options
'("originalcommands" "newcommands" "originalparameters" "document"
"newparameters" "footnotes" "raggedrightboxes")
"Package options for the ragged2e package.")