Variable: bibtex-font-lock-keywords

bibtex-font-lock-keywords is a variable defined in bibtex.el.gz.

Value

(("\\$[^$\n]+\\$" . font-lock-string-face)
 ("^[   ]*\\(@[         ]*[^\"#%'(),={}         \n0-9][^\"#%'(),={}     \n]*\\)[        ]*[({][         \n]*\\([][[:alnum:].:;?!`'/*@+|()<>&_^$-]+\\)?"
  (1 font-lock-function-name-face)
  (2 font-lock-constant-face nil t))
 ("^[   ]*\\(OPT[^\"#%'(),={}   \n0-9][^\"#%'(),={}     \n]*\\)[        ]*=" 1 font-lock-comment-face)
 ("^[   ]*\\([^\"#%'(),={}      \n0-9][^\"#%'(),={}     \n]*\\)[        ]*=" 1 font-lock-variable-name-face)
 (bibtex-font-lock-url)
 (bibtex-font-lock-crossref)
 ((lambda
    (bound)
    (bibtex-font-lock-cite
     '("\\\\cite[       \n]*{\\([^}]+\\)}" . 1)
     bound))))

Documentation

Default expressions to highlight in BibTeX mode.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/bibtex.el.gz
(defvar bibtex-font-lock-keywords
  `(("\\$[^$\n]+\\$" . font-lock-string-face) ; bug#50202
    ;; entry type and reference key
    (,bibtex-any-entry-maybe-empty-head
     (,bibtex-type-in-head font-lock-function-name-face)
     (,bibtex-key-in-head font-lock-constant-face nil t))
    ;; optional field names (treated as comments)
    (,(concat "^[ \t]*\\(OPT" bibtex-field-name "\\)[ \t]*=")
     1 font-lock-comment-face)
    ;; field names
    (,(concat "^[ \t]*\\(" bibtex-field-name "\\)[ \t]*=")
     1 font-lock-variable-name-face)
    ;; url
    (bibtex-font-lock-url) (bibtex-font-lock-crossref)
    ;; cite
    ,@(mapcar (lambda (matcher)
                `((lambda (bound) (bibtex-font-lock-cite ',matcher bound))))
              bibtex-cite-matcher-alist))
  "Default expressions to highlight in BibTeX mode.")