The TERMINATE Tag
Prev | Chapter 10. Mode Definition Syntax | Next

## The TERMINATE Tag

The `TERMINATE` rule, which must be placed inside a `RULES` tag, specifies that parsing should stop after the specified number of characters have been read from a line. The number of characters to terminate after should be specified with the `AT_CHAR` attribute. Here is an example:

    <TERMINATE AT_CHAR="1" />

This rule is used in Patch mode, for example, because only the first character of each line affects highlighting.

Prev | Up | Next
The RULES Tag | Home | The SPAN Tag