[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] Changes to auctex/font-latex.el
From: |
Ralf Angeli |
Subject: |
[AUCTeX-diffs] Changes to auctex/font-latex.el |
Date: |
Tue, 12 Jul 2005 05:15:21 -0400 |
Index: auctex/font-latex.el
diff -u auctex/font-latex.el:5.131 auctex/font-latex.el:5.132
--- auctex/font-latex.el:5.131 Fri Jul 8 16:32:22 2005
+++ auctex/font-latex.el Tue Jul 12 09:15:20 2005
@@ -1392,17 +1392,19 @@
\\begin{equation}
fontified stuff
\\end{equation}
-The \\begin{equation} and \\end{equation are not fontified here."
+The \\begin{equation} and \\end{equation} are not fontified here."
(when (re-search-forward
(eval-when-compile
- (concat "\\\\begin{\\(\\(display\\)?math\\|equation\\|eqnarray"
+ (concat "\\\\begin[
\t]*{\\(\\(display\\)?math\\|equation\\|eqnarray"
"\\|gather\\|multline\\|align\\|x*alignat"
"\\)\\*?}"))
limit t)
(let ((beg (match-end 0)) end)
- (if (search-forward (concat "\\end{" (buffer-substring
- (match-beginning 1)(match-end 0)))
- limit 'move)
+ (if (re-search-forward (concat "\\\\end[ \t]*{"
+ (regexp-quote (buffer-substring
+ (match-beginning 1)
+ (match-end 0))))
+ limit 'move)
(setq end (match-beginning 0))
(setq end (point)))
(store-match-data (list beg end))