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
.
Note that the first (unnamed) ruleset in a mode is called
“MAIN”.mode
::ruleset
MATCH_TYPE
- Controls how the start of
the sequence will be highlighted. See the section called “The MATCH_TYPE Attribute” for more information.
Here is an EOL_SPAN
that highlights C++
comments:
<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>