emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex fc77abf 1/3: Simplify regexp in texmathp.el


From: Tassilo Horn
Subject: [elpa] externals/auctex fc77abf 1/3: Simplify regexp in texmathp.el
Date: Tue, 2 Jun 2020 13:56:40 -0400 (EDT)

branch: externals/auctex
commit fc77abfcee426c3b3e0ced2f0cad02a385bfcb60
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@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

[Prev in Thread] Current Thread [Next in Thread]