[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 34a94db2 1/5: * tex.el (plain-TeX-auto-regexp-list): Save regexp
From: |
Arash Esbati |
Subject: |
master 34a94db2 1/5: * tex.el (plain-TeX-auto-regexp-list): Save regexp groups. |
Date: |
Tue, 26 Sep 2023 16:47:20 -0400 (EDT) |
branch: master
commit 34a94db2aef45840c42547d92ee7f06cbad78f2b
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
* tex.el (plain-TeX-auto-regexp-list): Save regexp groups.
---
tex.el | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/tex.el b/tex.el
index de1170a2..6ab21816 100644
--- a/tex.el
+++ b/tex.el
@@ -4270,21 +4270,16 @@ alter the numbering of any ordinary, non-shy groups.")
(defvar plain-TeX-auto-regexp-list
(let ((token TeX-token-char))
- `((,(concat "\\\\def\\\\\\(" token "+\\)[^a-zA-Z@]")
+ `((,(concat "\\\\\\(?:def\\|let\\)\\\\\\(" token "+\\)[^a-zA-Z@]")
1 TeX-auto-symbol-check)
- (,(concat "\\\\let\\\\\\(" token "+\\)[^a-zA-Z@]")
- 1 TeX-auto-symbol-check)
- (,(concat "\\\\font\\\\\\(" token "+\\)[^a-zA-Z@]") 1 TeX-auto-symbol)
- (,(concat "\\\\chardef\\\\\\(" token "+\\)[^a-zA-Z@]") 1 TeX-auto-symbol)
- (,(concat "\\\\new\\(?:count\\|dimen\\|muskip\\|skip\\)\\\\\\(" token
- "+\\)[^a-zA-Z@]")
+ (,(concat "\\\\"
+ (regexp-opt '("font" "newfont" "chardef" "mathchardef"
+ "newcount" "newdimen" "newmuskip" "newskip"))
+ "{?\\\\\\(" token "+\\)}?[^a-zA-Z@]")
1 TeX-auto-symbol)
- (,(concat "\\\\newfont{?\\\\\\(" token "+\\)}?") 1 TeX-auto-symbol)
(,(concat "\\\\typein\\[\\\\\\(" token "+\\)\\]") 1 TeX-auto-symbol)
("\\\\input +\\([^#}%\"\\\n\r]+?\\)\\(?:\\.[^#}%/\"\\.\n\r]+\\)?"
- 1 TeX-auto-file)
- (,(concat "\\\\mathchardef\\\\\\(" token "+\\)[^a-zA-Z@]")
- 1 TeX-auto-symbol)))
+ 1 TeX-auto-file)))
"List of regular expression matching common plain TeX macro definitions.")
(defvar TeX-auto-full-regexp-list plain-TeX-auto-regexp-list
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 34a94db2 1/5: * tex.el (plain-TeX-auto-regexp-list): Save regexp groups.,
Arash Esbati <=