Variable: font-lock-syntactic-keywords
font-lock-syntactic-keywords is a variable defined in font-lock.el.gz.
This variable is obsolete since 24.1; use syntax-propertize-function
instead.
Value
nil
Documentation
A list of the syntactic keywords to put syntax properties on.
The value can be the list itself, or the name of a function or variable whose value is the list.
See font-lock-keywords for a description of the form of this list;
only the differences are stated here. MATCH-HIGHLIGHT should be of the form:
(SUBEXP SYNTAX OVERRIDE LAXMATCH)
where SYNTAX can be a string (as taken by modify-syntax-entry), a syntax
table, a cons cell (as returned by string-to-syntax) or an expression whose
value is such a form. OVERRIDE cannot be prepend or append.
Here are two examples of elements of font-lock-syntactic-keywords
and what they do:
("\\\\$\\\\(#\\\\)" 1 ".")
gives a hash character punctuation syntax (".") when following a
dollar-sign character. Hash characters in other contexts will still
follow whatever the syntax table says about the hash character.
("\\\\(\\='\\\\).\\\\(\\='\\\\)"
(1 "\\"")
(2 "\""))
gives a pair of apostrophes, which surround a single character, a
SYNTAX of "\\"" (meaning string quote syntax). Apostrophes in other
contexts will not be affected.
This is normally set via font-lock-defaults.
Probably introduced at or before Emacs version 21.1.
Source Code
;; Defined in /usr/src/emacs/lisp/font-lock.el.gz
(defvar font-lock-syntactic-keywords nil
"A list of the syntactic keywords to put syntax properties on.
The value can be the list itself, or the name of a function or variable
whose value is the list.
See `font-lock-keywords' for a description of the form of this list;
only the differences are stated here. MATCH-HIGHLIGHT should be of the form:
(SUBEXP SYNTAX OVERRIDE LAXMATCH)
where SYNTAX can be a string (as taken by `modify-syntax-entry'), a syntax
table, a cons cell (as returned by `string-to-syntax') or an expression whose
value is such a form. OVERRIDE cannot be `prepend' or `append'.
Here are two examples of elements of `font-lock-syntactic-keywords'
and what they do:
(\"\\\\$\\\\(#\\\\)\" 1 \".\")
gives a hash character punctuation syntax (\".\") when following a
dollar-sign character. Hash characters in other contexts will still
follow whatever the syntax table says about the hash character.
(\"\\\\(\\='\\\\).\\\\(\\='\\\\)\"
(1 \"\\\"\")
(2 \"\\\"\"))
gives a pair of apostrophes, which surround a single character, a
SYNTAX of \"\\\"\" (meaning string quote syntax). Apostrophes in other
contexts will not be affected.
This is normally set via `font-lock-defaults'.")