auctex-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 0aa5010255 06/23: Update style/verbatim.el to pa


From: Tassilo Horn
Subject: [elpa] externals/auctex 0aa5010255 06/23: Update style/verbatim.el to package v1.5x
Date: Thu, 18 Apr 2024 05:43:17 -0400 (EDT)

branch: externals/auctex
commit 0aa5010255a07cdeb553bbc41c0acbe610c64cfb
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Update style/verbatim.el to package v1.5x
    
    * style/verbatim.el ("verbatim"): Support starred version of
    \verbatiminput macro incl. fontification.
---
 style/verbatim.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/style/verbatim.el b/style/verbatim.el
index 9062254359..8a13b09dcc 100644
--- a/style/verbatim.el
+++ b/style/verbatim.el
@@ -1,6 +1,6 @@
 ;;; verbatim.el --- Style hook for the verbatim package.  -*- lexical-binding: 
t; -*-
 
-;; Copyright (C) 2001, 2020 Free Software Foundation, Inc.
+;; Copyright (C) 2001--2024 Free Software Foundation, Inc.
 
 ;; Author: Masayuki Ataka <masayuki.ataka@gmail.com>
 ;; Maintainer: auctex-devel@gnu.org
@@ -35,6 +35,8 @@
 ;; Silence the compiler:
 (declare-function font-latex-set-syntactic-keywords
                   "font-latex")
+(declare-function font-latex-add-keywords
+                  "font-latex")
 
 (TeX-add-style-hook
  "verbatim"
@@ -42,12 +44,15 @@
    (LaTeX-add-environments
     "comment")
    (TeX-add-symbols
-    '("verbatiminput" TeX-arg-file))
+    '("verbatiminput" TeX-arg-file)
+    '("verbatiminput*" TeX-arg-file))
 
    ;; Fontification:
    ;; Code taken from `comment.el'
    (when (and (boundp 'font-latex-syntactic-keywords-extra)
               (eq TeX-install-font-lock 'font-latex-setup))
+     (font-latex-add-keywords '(("verbatiminput" "*{"))
+                              'reference)
      ;; For syntactic fontification.
      (add-to-list 'font-latex-syntactic-keywords-extra
                   '("^[ \t]*\\\\begin *{comment}.*\\(\n\\)"




reply via email to

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