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:
TYPE - The token type to highlight the
text with. See the section called “Token Types” for a list
of token types.
AT_LINE_START - If set to
TRUE, the sequence will only be highlighted
if it occurs at the beginning of a line.
AT_WHITESPACE_END - If set to
TRUE, the sequence will only be highlighted
if it is the first non-whitespace text in the line.
AT_WORD_START - If set to
TRUE, the sequence will only be highlighted
if it occurs at the beginning of a word.
MATCH_TYPE - Controls how the matched
region will be highlighted. See the section called “The MATCH_TYPE Attribute” for more information.
Here is a rule that highlights variables in Unix shell scripts (“$CLASSPATH”, “$IFS”, etc):
<MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>