branch: externals/auctex
commit fc77abfcee426c3b3e0ced2f0cad02a385bfcb60
Author: Ikumi Keita <ik...@ikumi.que.jp>
Commit: Ikumi Keita <ik...@ikumi.que.jp>

    Simplify regexp in texmathp.el
    
    * texmathp.el (texmathp-compile): Simplify regexp. In [^...] backslash
    and dollar have no special meaning so they can (should) be raw.
---
 texmathp.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/texmathp.el b/texmathp.el
index 723623b..3beac2e 100644
--- a/texmathp.el
+++ b/texmathp.el
@@ -185,10 +185,10 @@ customize (customize calls it when setting the variable)."
                      ((memq type '(sw-toggle))      'togglers)))
       (set var (cons (car entry) (symbol-value var))))
     (setq texmathp-onoff-regexp
-         (concat "\\(?:[^\\\\]\\|\\`\\)"
+         (concat "\\(?:[^\\]\\|\\`\\)"
                  (regexp-opt switches t))
          texmathp-toggle-regexp
-         (concat "\\([^\\\\\\$]\\|\\`\\)"
+         (concat "\\([^\\$]\\|\\`\\)"
                  (regexp-opt togglers t)))))
 
 (defcustom texmathp-tex-commands nil

Reply via email to