auctex-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 68e14e7ce4 45/76: * style/ltablex.el ("ltablex")


From: Tassilo Horn
Subject: [elpa] externals/auctex 68e14e7ce4 45/76: * style/ltablex.el ("ltablex"): Add fontification support.
Date: Fri, 13 Jan 2023 14:31:03 -0500 (EST)

branch: externals/auctex
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 1a6c0148bc..828abfce10 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]