auctex-diffs
[Top][All Lists]
Advanced

[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: Thu, 21 Jul 2005 14:51:38 -0400

Index: auctex/font-latex.el
diff -u auctex/font-latex.el:5.132 auctex/font-latex.el:5.133
--- auctex/font-latex.el:5.132  Tue Jul 12 09:15:20 2005
+++ auctex/font-latex.el        Thu Jul 21 18:51:37 2005
@@ -773,7 +773,12 @@
       (add-to-list 'font-latex-syntactic-keywords
                   `(,(concat "\\\\\\(?:" verb-macros "\\)"
                              "\\({\\).*?[^\\]\\(?:\\\\\\\\\\)*\\(}\\)")
-                    (1 "|") (2 "|"))))))
+                    (1 "|") (2 "|")))))
+  ;; Cater for docTeX mode.
+  (setq font-latex-doctex-syntactic-keywords
+       (append font-latex-syntactic-keywords
+               ;; For docTeX comment-in-doc.
+               `(("\\(\\^\\)\\^A" (1 (font-latex-doctex-^^A)))))))
 
 (defvar font-latex-syntactic-keywords nil
   "Syntactic keywords used by `font-latex'.")
@@ -1517,11 +1522,8 @@
   (append font-latex-keywords-2
          '(("^%<[^>]*>" (0 font-latex-doctex-preprocessor-face t)))))
 
-(defvar font-latex-doctex-syntactic-keywords
-  (append
-   font-latex-syntactic-keywords
-   ;; For docTeX comment-in-doc.
-   `(("\\(\\^\\)\\^A" (1 (font-latex-doctex-^^A))))))
+;; Set and updated in `font-latex-set-syntactic-keywords'.
+(defvar font-latex-doctex-syntactic-keywords nil)
 
 ;; Copy and adaptation of `doctex-font-lock-^^A' in `tex-mode.el' of
 ;; CVS Emacs (March 2004)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]