[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
main d8bc65b5 2/2: Trim spaces around environment names
From: |
Arash Esbati |
Subject: |
main d8bc65b5 2/2: Trim spaces around environment names |
Date: |
Thu, 12 Sep 2024 16:12:12 -0400 (EDT) |
branch: main
commit d8bc65b5222a36c4e0d30a3a36db6ae58bc04231
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Trim spaces around environment names
* latex.el (LaTeX-auto-regexp-list): Ignore spaces around new
environment names defined/modified with \NewDocumentEnvironment
et al.
---
latex.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/latex.el b/latex.el
index f03dc1dc..bc5893e5 100644
--- a/latex.el
+++ b/latex.el
@@ -1833,7 +1833,7 @@ This is necessary since index entries may contain
commands and stuff.")
"\\\\\\(New\\|Renew\\|Provide\\|Declare\\)"
"DocumentEnvironment"
"[ \t\n\r]*"
- "{\\([^}]+\\)}"
+ "{[ \t]*\\([^}]+?\\)[ \t]*}"
"[ \t\n\r]*"
"{\\([^}{]*\\(?:{[^}{]*\\(?:{[^}{]*\\(?:{[^}{]*}[^}{]*\\)*}[^}{]*\\)*}[^}{]*\\)*\\)}")
(0 2 3 1) LaTeX-auto-xparse-environment)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- main d8bc65b5 2/2: Trim spaces around environment names,
Arash Esbati <=