mments('#'))</code></li>
    <li><code>lex:add_fold_point('custom', function(text, pos, line, s, symbol)
    ... end)</code></li>
    </ul>


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

    <h3><code>lexer.add_rule</code>(lexer, id, rule)</h3>

    <p>Adds pattern <em>rule</em> identified by string <em>id</em> to the ordered list of rules
    for lexer <em>lexer</em>.</p>

    <p>Parameters:</p>

    <ul>
    <li><code>lexer</code>: The lexer to add the given rule to.</li>
    <li><code>id</code>: The id associ