xers with Complex State</h4>

    <p>A vast majority of lexers are not stateful and can operate on any chunk of
    text in a document. However, there may be rare cases where a lexer does need
    to keep track of some sort of persistent state. Rather than using <code>lpeg.P</code>
    function patterns that set state variables, it is recommended to make use of
    Scintilla&rsquo;s built-in, per-line state integers via <a href="#lexer.line_state"><code>lexer.line_state</code></a>. It
    was designed to ac