GNU Info

Info Node: (elisp)Syntactic Font Lock

(elisp)Syntactic Font Lock


Prev: Faces for Font Lock Up: Font Lock Mode
Enter node , (file) or (file)node

Syntactic Font Lock
-------------------

   Font Lock mode can be used to update `syntax-table' properties
automatically.  This is useful in languages for which a single syntax
table by itself is not sufficient.

 - Variable: font-lock-syntactic-keywords
     This variable enables and controls syntactic Font Lock.  Its value
     should be a list of elements of this form:

          (MATCHER SUBEXP SYNTAX OVERRIDE LAXMATCH)

     The parts of this element have the same meanings as in the
     corresponding sort of element of `font-lock-keywords',

          (MATCHER SUBEXP FACENAME OVERRIDE LAXMATCH)

     However, instead of specifying the value FACENAME to use for the
     `face' property, it specifies the value SYNTAX to use for the
     `syntax-table' property.  Here, SYNTAX can be a variable whose
     value is a syntax table, a syntax entry of the form `(SYNTAX-CODE
     . MATCHING-CHAR)', or an expression whose value is one of those
     two types.


automatically generated by info2www version 1.2.2.9