comparison elpa/auctex-12.2.4/style/luacode.el @ 207:ded909e32640

auctex: new version from ELPA
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 08 Jan 2021 19:42:09 -0500
parents
children
comparison
equal deleted inserted replaced
206:c4742df2304d 207:ded909e32640
1 ;;; luacode.el --- AUCTeX style for `luacode.sty' version 1.2a.
2
3 ;; Copyright (C) 2013, 2018 Free Software Foundation, Inc.
4
5 ;; Maintainer: auctex-devel@gnu.org
6 ;; Author: Mosè Giordano <giordano.mose@libero.it>
7 ;; Keywords: tex
8
9 ;; This file is part of AUCTeX.
10
11 ;; AUCTeX is free software; you can redistribute it and/or modify it
12 ;; under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 3, or (at your option)
14 ;; any later version.
15
16 ;; AUCTeX is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ;; General Public License for more details.
20
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with AUCTeX; see the file COPYING. If not, write to the Free
23 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24 ;; 02110-1301, USA.
25
26 ;;; Commentary:
27
28 ;; This file adds support for `luacode.sty' 1.2a.
29
30 ;;; Code:
31
32 ;; Silence the compiler:
33 (declare-function font-latex-add-keywords
34 "font-latex"
35 (keywords class))
36
37 (TeX-add-style-hook
38 "luacode"
39 (lambda ()
40 (TeX-add-symbols
41 '("luadirect" 1)
42 '("luaexec" 1)
43 '("luastring" 1)
44 '("luastringN" 1)
45 '("luastringO" 1)
46 '("LuaCodeDebugOn" 0)
47 '("LuaCodeDebugOff" 0))
48 (LaTeX-add-environments
49 '("luacode")
50 '("luacode*"))
51
52 ;; Fontification
53 (when (and (featurep 'font-latex)
54 (eq TeX-install-font-lock 'font-latex-setup))
55 (font-latex-add-keywords '(("luadirect" "{")
56 ("luaexec" "{")
57 ("luastring" "{")
58 ("luastringN" "{")
59 ("luastringO" "{")
60 ("LuaCodeDebugOn")
61 ("LuaCodeDebugOff"))
62 'function)))
63 LaTeX-dialect)
64
65 (defvar LaTeX-luacode-package-options nil
66 "Package options for the luacode package.")
67
68 ;;; luacode.el ends here