The MARK_PREVIOUS Tag

The MARK_PREVIOUS rule, which must be placed inside a RULES tag, highlights from the end of the previous syntax token to the matched text. The text to match is specified between opening and closing MARK_PREVIOUS tags. The following attributes are supported:

Here is a rule that highlights labels in Java mode (for example, XXX:):

<MARK_PREVIOUS AT_WHITESPACE_END="TRUE"
   MATCH_TYPE="DEFAULT">:</MARK_PREVIOUS>