An EOL_SPAN is similar to a SPAN except that highlighting stops at the end of the line, and no end sequence needs to be specified. The text to match is specified between the opening and closing EOL_SPAN tags. The following attributes are supported:
TYPE - The token type to highlight the span with. See the section called “Token Types” for a list of token types.
AT_LINE_START - If set to TRUE, the span will only be highlighted if the start sequence occurs at the beginning of a line.
AT_WHITESPACE_END - If set to TRUE, the span will only be highlighted if the sequence is the first non-whitespace text in the line.
AT_WORD_START - If set to TRUE, the span will only be highlighted if the start sequence occurs at the beginning of a word.
DELEGATE - text inside the span will be highlighted with the specified ruleset. To delegate to a ruleset defined in the current mode, just specify its name. To delegate to a ruleset defined in another mode, specify a name of the form mode::ruleset. Note that the first (unnamed) ruleset in a mode is called “MAIN”.
EXCLUDE_MATCH - If set to TRUE, the start and end sequences will not be highlighted, only the text between them will.
Here is an EOL_SPAN that highlights C++ comments:
<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN> |