Debian Codegraph @

texmf-dist/doc/latex/listings-ext/listings-ext.el

raw
1 ;;; listings-ext.el --- AUCTeX style for `listings-ext.sty'
2
3 ;; Copyright (C) 2008-2010 Free Software Foundation, Inc.
4
5 ;; Maintainer: Jobst Hoffmann, <j.hoffmann_(at)_fh-aachen.de>
6 ;; $Author: ax006ho $
7 ;; $Date: 2010-06-29 18:38:12 +0200 (Di, 29 Jun 2010) $
8 ;; $Revision: 67 $
9 ;; Keywords: tex
10
11 ;;; Commentary:
12 ;; This file adds support for `listings-ext.sty'
13
14 ;;; Code:
15 (TeX-add-style-hook
16 "listings-ext"
17 (lambda ()
18 (TeX-add-symbols
19 '("lstcheck" "identifier" TeX-arg-input-file 0)
20 '("lstdef" "identifier" TeX-arg-input-file "line range" 0)
21 '("lstuse" ["options"] "identifier"0))
22
23 ;; Filling
24
25 ;; Fontification
26 (when (and (featurep 'font-latex)
27 (eq TeX-install-font-lock 'font-latex-setup))
28 (add-to-list 'font-latex-match-function-keywords-local "lstcheck")
29 (add-to-list 'font-latex-match-function-keywords-local "lstdef")
30 (add-to-list 'font-latex-match-function-keywords-local "lstuse")
31 (font-latex-match-function-make)
32 ;; For syntactic fontification, e.g. verbatim constructs
33 (font-latex-set-syntactic-keywords)
34 ;; Tell font-lock about the update.
35 (setq font-lock-set-defaults nil)
36 (font-lock-set-defaults))))
37
38 ;; preparing of environments isn't necessary
39
40 ;; support for options
41 (defvar LaTeX-listings-ext-package-options nil
42 "Package options for the listings-ext package.")
43
44 ;;; listings-ext.el ends here.