branch: main
commit 9f1a83b5c80afb3f0846f678a3a4866be078c762
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Recognize the 'c' argument specifier for environments
* latex.el (LaTeX-xparse-macro-parse): Recognize the 'c' argument
specifier introduced with LaTeX release 2025-06-01.
---
latex.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/latex.el b/latex.el
index 7f6b356f..0f75bc57 100644
--- a/latex.el
+++ b/latex.el
@@ -1999,11 +1999,11 @@ TYPE is one of the symbols mac or env."
(set-syntax-table LaTeX-mode-syntax-table)
(insert (replace-regexp-in-string "[ \t\r\n%]" "" spec))
(goto-char (point-min))
- (while (looking-at-p "[+!>=bmrRvodODsteE]")
- (cond ((looking-at-p "[+!b]")
+ (while (looking-at-p "[+!>=bcmrRvodODsteE]")
+ (cond ((looking-at-p "[+!bc]")
;; + or !: Long argument or space aware: Move over
;; them. b is special; only available for
- ;; enviroments
+ ;; enviroments as well as c.
(forward-char 1))
;; Argument processors and key-val modifier: Move
;; over [>=] and a balanced {}