The MARK_FOLLOWING Tag

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

Here is a rule that highlights variables in Unix shell scripts ($CLASSPATH, $IFS, etc):

<MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>