From: Richard M. Stallman Date: Tue, 15 Mar 1994 06:14:20 +0000 (+0000) Subject: (LaTeX patterns): Don't match \( and \[ following a \. X-Git-Tag: emacs-19.34~9488 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=103ffad56800483993986d4b2119c750cf1f8763;p=emacs.git (LaTeX patterns): Don't match \( and \[ following a \. --- 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