branch: externals/auctex commit 0aa5010255a07cdeb553bbc41c0acbe610c64cfb Author: Arash Esbati <ar...@gnu.org> Commit: Arash Esbati <ar...@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.at...@gmail.com> ;; Maintainer: auctex-de...@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\\)"