From 103ffad56800483993986d4b2119c750cf1f8763 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 15 Mar 1994 06:14:20 +0000 Subject: [PATCH] (LaTeX patterns): Don't match \( and \[ following a \. --- lisp/hilit19.el | 4 ++-- 1 file 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 -- 2.39.5