branch: externals/auctex
commit 7b1d4156b2b01dae73fdbe8ca1a60445266040b7
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
* latex.el (LaTeX-auto-counter-regexp-list): Save regexp groups.
---
latex.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/latex.el b/latex.el
index ca82dc97da..e9c4fe3297 100644
--- a/latex.el
+++ b/latex.el
@@ -1802,8 +1802,9 @@ This is necessary since index entries may contain
commands and stuff.")
(defvar LaTeX-auto-counter-regexp-list
(let ((token TeX-token-char))
- `((,(concat "\\\\newcounter *{\\(" token "+\\)}") 1 LaTeX-auto-counter)
- (,(concat "\\\\@definecounter{\\(" token "+\\)}") 1 LaTeX-auto-counter)))
+ `((,(concat "\\\\"
+ "\\(?:newcounter\\|@definecounter\\) *{\\(" token "+\\)}")
+ 1 LaTeX-auto-counter)))
"List of regular expressions matching LaTeX counters only.")
(defvar LaTeX-auto-length-regexp-list