The MATCH_TYPE Attribute

The MATCH_TYPE attribute is used by some of the rules to control how the region matched by the rule will be highlighted.

For example, when using a MARK_PREVIOUS rule to highlight a function call of the form fcall(), the following rule could be used:


This would cause fcall to be highlighted as FUNCTION, and ( to be highlighted as OPERATOR. In this case, to maintain bracket matching working, a SEQ rule would have to be added to match ) and mark it as OPERATOR.

The MATCH_TYPE attribute value can be any of the valid token types, or the following special values: