summaryrefslogtreecommitdiff
path: root/lisp/hilit19.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-03-15 06:14:20 +0000
committerRichard M. Stallman <rms@gnu.org>1994-03-15 06:14:20 +0000
commit515469affd86d0116a8ff3969a07658c97894eea (patch)
tree18058bc13d002c9a823dd409e2db47333234a8bf /lisp/hilit19.el
parentf7958c114ac8d4e8a744cbae914b7fca13fd5463 (diff)
downloademacs-515469affd86d0116a8ff3969a07658c97894eea.tar.gz
(LaTeX patterns): Don't match \( and \[ following a \.
Diffstat (limited to 'lisp/hilit19.el')
-rw-r--r--lisp/hilit19.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/hilit19.el b/lisp/hilit19.el
index 2bf5f920a43..eca6d350f2e 100644
--- a/lisp/hilit19.el
+++ b/lisp/hilit19.el
@@ -1255,8 +1255,8 @@ number of backslashes."
("\\\\caption\\(\\[[^]]*\\]\\)?{" "}" label)
;; formulas
- ("\\\\(" "\\\\)" formula) ; \( \)
- ("\\\\\\[" "\\\\\\]" formula) ; \[ \]
+ ("[^\\]\\\\(" "\\\\)" formula) ; \( \)
+ ("[^\\]\\\\\\[" "\\\\\\]" formula) ; \[ \]
("[^$]\\($\\($[^$]*\\$\\|[^$]*\\)\\$\\)" 1 formula) ; '$...$' or '$$...$$'
;; things that bring in external files