]> git.eshelyaron.com Git - emacs.git/commitdiff
(LaTeX patterns): Don't match \( and \[ following a \.
authorRichard M. Stallman <rms@gnu.org>
Tue, 15 Mar 1994 06:14:20 +0000 (06:14 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 15 Mar 1994 06:14:20 +0000 (06:14 +0000)
lisp/hilit19.el

index 2bf5f920a4359ee743133dc5c0b64d20b19652c5..eca6d350f2eaf74d86cf0f1cbabd004395ab0a8c 100644 (file)
@@ -1255,8 +1255,8 @@ number of backslashes."
    ("\\\\caption\\(\\[[^]]*\\]\\)?{" "}" label)
 
    ;; formulas
-   ("\\\\("  "\\\\)" formula)                   ; \( \)
-   ("\\\\\\[" "\\\\\\]" formula)                ; \[ \]
+   ("[^\\]\\\\("  "\\\\)" formula)                   ; \( \)
+   ("[^\\]\\\\\\[" "\\\\\\]" formula)                ; \[ \]
    ("[^$]\\($\\($[^$]*\\$\\|[^$]*\\)\\$\\)" 1 formula) ; '$...$' or '$$...$$'
    
    ;; things that bring in external files