branch: main
commit cc9ab2a068c23f7387b719b18feada52911d7406
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    Recognize non-letters in macro names
    
    * latex.el (LaTeX-indent-commands-regexp-make): Recognize ':' and
    '_' as part of conditional macros.
    
    * tex.el (TeX-mode-cleanup): Recognize ':', '_' and '@' as part of
    macros for completion.
---
 latex.el | 6 +++---
 tex.el   | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/latex.el b/latex.el
index d27a2169..03c2c819 100644
--- a/latex.el
+++ b/latex.el
@@ -4391,15 +4391,15 @@ macros are added to the regexp's.  This function is 
called in
                                             (regexp-opt symbs))))))))
     (funcall func
              LaTeX-indent-begin-list
-             "if[a-zA-Z@]*\\b"
+             "if[a-zA-Z@:_]*\\b"
              'LaTeX-indent-begin-regexp-local)
     (funcall func
              LaTeX-indent-mid-list
-             "else\\b\\|or\\b"
+             "else:?\\b\\|or\\b"
              'LaTeX-indent-mid-regexp-local)
     (funcall func
              LaTeX-indent-end-list
-             "fi\\b"
+             "fi:?\\b"
              'LaTeX-indent-end-regexp-local)
     (funcall func
              LaTeX-indent-begin-exceptions-list
diff --git a/tex.el b/tex.el
index 62f0f102..f6545aaa 100644
--- a/tex.el
+++ b/tex.el
@@ -3906,7 +3906,7 @@ Run after mode hooks and file local variables 
application."
   ;; Symbol & length completion.
   (or (local-variable-p 'TeX-complete-list)
       (setq-local TeX-complete-list
-                  (list (list "\\\\\\([a-zA-Z]*\\)"
+                  (list (list "\\\\\\([a-zA-Z@:_]*\\)"
                               1
                               (lambda ()
                                 (append

Reply via email to