branch: externals/auctex
commit 2da69abf3049394278346b59d768fd72fef39bdd
Author: Arash Esbati <[email protected]>
Commit: Mosè Giordano <[email protected]>
Add fontification for `\newcolumntype'.
* style/array.el ("array"): Add fontification for
`\newcolumntype'.
Signed-off-by: Mosè Giordano <[email protected]>
---
ChangeLog | 5 +++++
style/array.el | 8 +++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 853d5d7..ed15097 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-30 Arash Esbati <[email protected]>
+
+ * style/array.el ("array"): Add fontification for
+ `\newcolumntype'.
+
2015-08-28 Tassilo Horn <[email protected]>
* tex.el (TeX-mode-syntax-table): Use punctuation syntax for
diff --git a/style/array.el b/style/array.el
index 058eb92..645371d 100644
--- a/style/array.el
+++ b/style/array.el
@@ -90,7 +90,13 @@ and make it buffer local. "
;; `array.sty' adds some new column specification letters.
(set (make-local-variable 'LaTeX-array-column-letters)
- (concat LaTeX-array-column-letters "m" "b")))
+ (concat LaTeX-array-column-letters "m" "b"))
+
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("newcolumntype" "{[{"))
+ 'function)))
LaTeX-dialect)
(defvar LaTeX-array-package-options nil