auctex-diffs
[Top][All Lists]
Advanced

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

master 68e14e7c 3/5: * style/ltablex.el ("ltablex"): Add fontification s


From: Arash Esbati
Subject: master 68e14e7c 3/5: * style/ltablex.el ("ltablex"): Add fontification support.
Date: Tue, 13 Dec 2022 06:33:01 -0500 (EST)

branch: master
commit 68e14e7ce4d3041273e3242d89059c3ee9a535cc
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    * style/ltablex.el ("ltablex"): Add fontification support.
---
 style/ltablex.el | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/style/ltablex.el b/style/ltablex.el
index 1a6c0148..828abfce 100644
--- a/style/ltablex.el
+++ b/style/ltablex.el
@@ -1,6 +1,6 @@
 ;;; ltablex.el --- AUCTeX style for `ltablex.sty' (v1.1)  -*- lexical-binding: 
t; -*-
 
-;; Copyright (C) 2015, 2020 Free Software Foundation, Inc.
+;; Copyright (C) 2015--2022 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati <arash@gnu.org>
 ;; Maintainer: auctex-devel@gnu.org
@@ -34,6 +34,11 @@
 
 ;;; Code:
 
+;; Silence the compiler:
+(declare-function font-latex-add-keywords
+                  "font-latex"
+                  (keywords class))
+
 (require 'tex)
 
 (TeX-add-style-hook
@@ -42,7 +47,14 @@
    (TeX-run-style-hooks "tabularx" "longtable")
    (TeX-add-symbols
     '("keepXColumns" 0)
-    '("convertXColumns" 0)))
+    '("convertXColumns" 0))
+
+   ;; Fontification
+   (when (and (featurep 'font-latex)
+              (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("keepXColumns"    "")
+                                ("convertXColumns" ""))
+                              'function)))
  TeX-dialect)
 
 (defvar LaTeX-ltablex-package-options nil



reply via email to

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