Variable: font-latex-keywords-2
font-latex-keywords-2 is a variable defined in font-latex.el.
Value
Large value
(("\\(\\\\\\)end"
(1
(get-text-property
(match-end 1)
'face)
t))
(font-latex-match-quotation
(0 'font-latex-string-face append)
(1 'font-latex-warning-face))
(font-latex-match-dollar-math 0 'font-latex-math-face keep)
("\\(^\\|[^\\]\\)\\(&+\\)" 2 'font-latex-warning-face)
(font-latex-match-warning
(0 'font-latex-warning-face))
(font-latex-match-variable
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-biblatexnoarg
(0 'font-lock-variable-name-face))
(font-latex-match-biblatex
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-reference
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-function
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-function-noarg
(0 'font-lock-keyword-face))
(font-latex-match-sectioning-0
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-sectioning-1
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-sectioning-2
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-sectioning-3
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-sectioning-4
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-sectioning-5
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-slide-title
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-textual
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-bold-command
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-italic-command
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-underline-command
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-math-command
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-type-command
(0
(font-latex-matched-face 0)
append t)
(1
(font-latex-matched-face 1)
append t)
(2
(font-latex-matched-face 2)
append t)
(3
(font-latex-matched-face 3)
append t)
(4
(font-latex-matched-face 4)
append t)
(5
(font-latex-matched-face 5)
append t)
(6
(font-latex-matched-face 6)
append t)
(7
(font-latex-matched-face 7)
append t)
(8
(font-latex-matched-face 8)
append t)
(9
(font-latex-matched-face 9)
append t)
(10
(font-latex-matched-face 10)
append t)
(11
(font-latex-matched-face 11)
append t))
(font-latex-match-bold-declaration
(0 'font-latex-warning-face t t)
(1 'font-lock-keyword-face append t)
(2 'font-latex-bold-face append t))
(font-latex-match-italic-declaration
(0 'font-latex-warning-face t t)
(1 'font-lock-keyword-face append t)
(2 'font-latex-italic-face append t))
(font-latex-match-type-declaration
(0 'font-latex-warning-face t t)
(1 'font-lock-keyword-face append t)
(2 'font-lock-type-face append t))
(font-latex-match-math-env
(0 'font-latex-warning-face t t)
(1 'font-latex-math-face append t))
(font-latex-match-math-envII
(1 'font-latex-math-face append t))
(font-latex-match-simple-command
(0 'font-latex-sedate-face append))
(font-latex-match-script
(1
(font-latex-script
(match-beginning 0))
append))
(font-latex-match-script-chars
(1
(font-latex-script-char
(match-beginning 1))
prepend)))
Documentation
High level highlighting for LaTeX modes.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/font-latex.el
(defmacro font-latex-make-built-in-keywords ()
"Build defuns, defvars and defcustoms for built-in keyword fontification."
(let ((flks '())
(defs '()))
(dolist (item font-latex-built-in-keyword-classes)
(let ((prefix "font-latex-match-")
(name (nth 0 item))
(keywords (nth 1 item))
(face (nth 2 item))
(level (nth 3 item))
(type (nth 4 item)))
;; defvar font-latex-match-*-keywords-local
(push `(defvar-local ,(intern (concat prefix name "-keywords-local"))
',keywords
,(concat "Buffer-local keywords to add to `"
prefix name "-keywords'.\n\n"
(if (eq type 'command)
"\
This must be a list where each element is a list consisting of a
keyword string (not a regular expression) omitting the leading
backslash and a format specifier as described in the doc string of
`font-latex-user-keyword-classes'."
"\
This must be a list where each element is a keyword string (not a
regular expression) omitting the leading backslash.")
"\n\n\
This is an internal variable which should not be set directly.
Use `font-latex-add-keywords' instead.
Generated by `font-latex-make-built-in-keywords'."))
defs)
;; defvar font-latex-match-*
;; We make this variable buffer local later, but don't use
;; `defvar-local' here because it shouldn't have nil as its
;; default value. Its true default value is set through
;; font-latex-match-*-make in :set specification of defcustom of
;; font-latex-match-*-keywords below. It's only after that this
;; variable can be buffer local.
(push `(defvar ,(intern (concat prefix name)) nil
,(concat "Regular expression to match " name
" keywords.
Generated by `font-latex-make-built-in-keywords'"))
defs)
;; This defvar (without value) is here just to suppress compiler
;; warnings. Its true definition is done by defcustom following
;; the next defun because its :set function depends on the
;; function defined by that defun.
(push `(defvar ,(intern (concat prefix name "-keywords")))
defs)
;; defun font-latex-match-*-make
(push `(defun ,(intern (concat prefix name "-make")) ()
,(concat "Make or remake the variable `" prefix name "'.
Generated by `font-latex-make-built-in-keywords'.")
(let ((keywords
(append
(unless (member ,name
font-latex-deactivated-keyword-classes)
,(intern (concat prefix name "-keywords-local")))
,(intern (concat prefix name "-keywords"))))
multi-char-macros single-char-macros)
(dolist (elt keywords)
(let ((keyword (if (listp elt) (car elt) elt)))
(if (string-match "^[A-Za-z]" keyword)
(push keyword multi-char-macros)
(push keyword single-char-macros))))
(when (or multi-char-macros single-char-macros)
(setq ,(intern (concat prefix name))
(concat
"\\\\\\("
(when multi-char-macros
(concat
"\\(?:" (regexp-opt multi-char-macros) "\\)\\>"))
(when single-char-macros
(concat
(when multi-char-macros "\\|")
"\\(?:" (regexp-opt single-char-macros) "\\)"))
"\\)")))))
defs)
;; defcustom font-latex-match-*-keywords
(push `(defcustom ,(intern (concat prefix name "-keywords")) nil
,(concat "List of keywords "
(when (eq type 'command) "and formats ")
"for " name " face.\n"
(if (eq type 'command)
"\
Each element has to be a list consisting of the name of a macro
omitting the leading backslash and a format specifier as
described in the doc string of `font-latex-user-keyword-classes'."
"\
Each element has to be the name of a macro as a string, omitting
the leading backslash.")
"\n\n\
Setting this variable directly does not take effect; restart
Emacs.
Generated by `font-latex-make-built-in-keywords'.")
:type '(repeat ,(if (eq type 'command)
'(list (string :tag "Keyword")
(string :tag "Format"))
'(string :tag "Keyword")))
:set (lambda (symbol value)
(set-default symbol value)
(funcall ',(intern (concat prefix name "-make"))))
:group 'font-latex-keywords)
defs)
;; Now that font-latex-match-* has attained proper default
;; value, make it buffer local.
(push `(make-variable-buffer-local ',(intern (concat prefix name)))
defs)
;; defun font-latex-match-*
(push (font-latex--make-match-defun prefix name face type) defs)
;; Add matchers and highlighters to `font-latex-keywords-{1,2}'.
(let ((keywords-entry (font-latex-keyword-matcher
prefix name face type)))
(push (cons level keywords-entry) flks))))
`(progn
,@(nreverse defs)
(defvar font-latex-keywords-1
',(nreverse (delq nil (mapcar (lambda (x) (if (eq 1 (car x)) (cdr x)))
flks)))
"Subdued level highlighting for LaTeX modes.")
(defvar font-latex-keywords-2
',(nreverse (mapcar #'cdr flks))
"High level highlighting for LaTeX modes."))))