branch: externals/auctex
commit a617944b4bea2d14e717a7376cc4aeb82e3cc4be
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Fix style/xspace.el
* style/xspace.el ("xspace"): Fix the name of the macro
\xspaceaddexceptions, insert braces for the argument.
Query for a token after \xspaceremoveexception.
Remove "xspace" from fontification since it's used only in a
macro argument itself.
---
style/xspace.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/style/xspace.el b/style/xspace.el
index 5f04c5be88..889d17d3a3 100644
--- a/style/xspace.el
+++ b/style/xspace.el
@@ -1,6 +1,6 @@
;;; xspace.el --- AUCTeX style for `xspace.sty' -*- lexical-binding: t; -*-
-;; Copyright (C) 2011, 2018, 2020 Free Software Foundation, Inc.
+;; Copyright (C) 2011--2022 Free Software Foundation, Inc.
;; Author: Mads Jensen <[email protected]>
;; Maintainer: [email protected]
@@ -42,14 +42,13 @@
(lambda ()
(TeX-add-symbols
'("xspace" 0)
- "xspaceaddexception"
- "xspaceremoveexception")
+ '("xspaceaddexceptions" t)
+ '("xspaceremoveexception" "Token"))
;; Fontification
(when (and (featurep 'font-latex)
(eq TeX-install-font-lock 'font-latex-setup))
- (font-latex-add-keywords '(("xspace" "")
- ("xspaceaddexception" "{")
+ (font-latex-add-keywords '(("xspaceaddexceptions" "{")
("xspaceremoveexception" "{"))
'function)))
TeX-dialect)