Next: , Previous: The principle, Up: Auto-generation of lexical rules


4.2.2 Type properties with a special meaning

syntax
The value of the syntax property should be a syntactic regexp, that is a regexp that matches buffer data based on the current Emacs syntax table.

For instance, to grab constituents of symbol or keyword types, the syntax property value will probably be:

"\\(\\sw\\|\\s_\\)+"

For well known types, the syntax property has a predefined value that should suit standard needs (see Predefined well-known types).

matchdatatype
The value of the matchdatatype property is a symbol that specifies which algorithm to use to match the tokens of this type. These match algorithms are defined:
regexp
string
block
sexp
keyword