summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Francoise <romain@orebokech.com>2006-06-18 08:17:56 +0000
committerRomain Francoise <romain@orebokech.com>2006-06-18 08:17:56 +0000
commitfbb8ec60bd23f1550f166a3de03430b822bd8966 (patch)
tree28b127d90945b3b47ecace419b28ebb38865587b
parent15f83ce6f8aeebf7eea3e89c5dd63b3f2556c3de (diff)
downloademacs-fbb8ec60bd23f1550f166a3de03430b822bd8966.tar.gz
2006-06-18 Ralf Angeli <angeli@caeruleus.net>
* textmodes/tex-mode.el (tex-font-lock-match-suscript): Remove superfluous part of regexp for brace matching which is handled by `scan-lists' call.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/textmodes/tex-mode.el2
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5f4d0ceba7f..c6310b84731 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-18 Ralf Angeli <angeli@caeruleus.net>
+
+ * textmodes/tex-mode.el (tex-font-lock-match-suscript): Remove
+ superfluous part of regexp for brace matching which is handled by
+ `scan-lists' call.
+
2006-06-16 Richard Stallman <rms@gnu.org>
* obsolete/options.el (list-options): Put "obsolete" msg in buffer.
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 8ca7c3026e8..9e78f4b6015 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -597,7 +597,7 @@ An alternative value is \" . \", if you use a font with a narrow period."
(defun tex-font-lock-match-suscript (limit)
"Match subscript and superscript patterns up to LIMIT."
(when (re-search-forward "[_^] *\\([^\n\\{}]\\|\
-\\\\\\([a-zA-Z@]+\\|[^ \t\n]\\)\\|{[^\\{]*}\\|\\({\\)\\)" limit t)
+\\\\\\([a-zA-Z@]+\\|[^ \t\n]\\)\\|\\({\\)\\)" limit t)
(when (match-end 3)
(let ((beg (match-beginning 3))
(end (save-restriction