p lexer</code></li>
    </ul>


    <p><a id="lexer.fold"></a></p>

    <h3><code>lexer.fold</code> (lexer, text, start_pos, start_line, start_level)</h3>

    <p>Determines fold points in a chunk of text <em>text</em> using lexer <em>lexer</em>,
    returning a table of fold levels associated with line numbers.
    <em>text</em> starts at position <em>start_pos</em> on line number <em>start_line</em> with a
    beginning fold level of <em>start_level</em> in the buffer.</p>

    <p>Parameters:</p>

    <ul