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)
 (#[257 "\301\300\"\207"
	[("\\\\cite[    \n]*{\\([^}]+\\)}" . 1) bibtex-font-lock-cite]
	4
	("/nix/store/yvwy8dm26cpa1j12ixgs1dyiaw2abdk9-emacs-snapshot/share/emacs/31.0.50/lisp/textmodes/bibtex.elc"
	 . 70891)]))

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.")