auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] Changes to auctex/style/listings.el,v


From: Ralf Angeli
Subject: [AUCTeX-diffs] Changes to auctex/style/listings.el,v
Date: Sun, 19 Aug 2007 20:23:39 +0000

CVSROOT:        /cvsroot/auctex
Module name:    auctex
Changes by:     Ralf Angeli <angeli>    07/08/19 20:23:38

Index: listings.el
===================================================================
RCS file: /cvsroot/auctex/auctex/style/listings.el,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- listings.el 25 May 2006 07:50:56 -0000      1.9
+++ listings.el 19 Aug 2007 20:23:38 -0000      1.10
@@ -60,18 +60,16 @@
    ;; Fontification
    (when (and (featurep 'font-latex)
              (eq TeX-install-font-lock 'font-latex-setup))
-     (add-to-list 'font-latex-match-function-keywords-local 
"lstnewenvironment")
-     (font-latex-match-function-make)
-     (add-to-list 'font-latex-match-reference-keywords-local "lstinputlisting")
-     (font-latex-match-reference-make)
-     (add-to-list 'font-latex-match-textual-keywords-local "lstinline")        
; Better
-                                                                       ; idea?
-     (add-to-list 'font-latex-match-textual-keywords-local "lstlistoflistings")
-     (font-latex-match-textual-make)
-     (add-to-list 'font-latex-match-variable-keywords-local "lstalias")
-     (add-to-list 'font-latex-match-variable-keywords-local "lstdefinestyle")
-     (add-to-list 'font-latex-match-variable-keywords-local "lstset")
-     (font-latex-match-variable-make)
+     (font-latex-add-keywords '(("lstnewenvironment" "{[[{{")) 'function)
+     (font-latex-add-keywords '(("lstinputlisting" "[{")) 'reference)
+     (font-latex-add-keywords '(("lstinline" "[{") ; The second argument should
+                                                  ; actually be verbatim.
+                               ("lstlistoflistings" ""))
+                             'textual)
+     (font-latex-add-keywords '(("lstalias" "{{")
+                               ("lstdefinestyle" "{{")
+                               ("lstset" "{"))
+                             'variable)
      ;; For syntactic fontification, e.g. verbatim constructs.
      (font-latex-set-syntactic-keywords)
      ;; Tell font-lock about the update.




reply via email to

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