auctex-diffs
[Top][All Lists]
Advanced

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

master 6baccb40: Recognize '=' argument modifier


From: Arash Esbati
Subject: master 6baccb40: Recognize '=' argument modifier
Date: Thu, 6 Oct 2022 14:46:34 -0400 (EDT)

branch: master
commit 6baccb40548a380dd9dfd8a584e0f17cc8d53de8
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    Recognize '=' argument modifier
    
    * style/xparse.el (LaTeX-xparse-macro-parse): Support '={...}'
    argument modifier for key-vals.
---
 style/xparse.el | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/style/xparse.el b/style/xparse.el
index b2a2fb05..397a0c4b 100644
--- a/style/xparse.el
+++ b/style/xparse.el
@@ -1,4 +1,4 @@
-;;; xparse.el --- AUCTeX style for `xparse.sty' version 2020-03-06  -*- 
lexical-binding: t; -*-
+;;; xparse.el --- AUCTeX style for `xparse.sty' version 2022-07-05  -*- 
lexical-binding: t; -*-
 
 ;; Copyright (C) 2013, 2020--2022 Free Software Foundation, Inc.
 
@@ -25,7 +25,7 @@
 
 ;;; Commentary:
 
-;; This file adds basic support for `xparse.sty' version 2020-03-06.
+;; This file adds basic support for `xparse.sty' version 2022-07-05.
 ;; It parses argument specification of macros and environments.
 
 ;; The "yet not more supported" specifiers `l', `u', `g' and `G' are
@@ -118,15 +118,15 @@ TYPE is one of the symbols mac or env."
         (goto-char (point-min))
         (insert (replace-regexp-in-string "[ \t\r\n%]" "" spec))
         (goto-char (point-min))
-        (while (looking-at-p "[+!>bmrRvodODsteE]")
-          (cond (;; + or !: Long argument or space aware: Move over
+        (while (looking-at-p "[+!>=bmrRvodODsteE]")
+          (cond ((looking-at-p "[+!b]")
+                 ;; + or !: Long argument or space aware: Move over
                  ;; them.  b is special; only available for
                  ;; enviroments
-                 (looking-at-p "[+!b]")
                  (forward-char 1))
-                ((looking-at-p ">")
-                 ;; Argument processors: Move over > and a balanced
-                 ;; {}
+                ;; Argument processors and key-val modifier: Move
+                ;; over [>=] and a balanced {}
+                ((looking-at-p "[>=]")
                  (forward-char 1)
                  (forward-sexp))
                 ;; Mandatory arguments:



reply via email to

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