hing at.</li>
    <li><em><code>escape</code></em>: Optional flag indicating whether or not newlines can be escaped
    by a &lsquo;\&rsquo; character. The default value is <code>false</code>.</li>
    </ul>


    <p>Usage:</p>

    <ul>
    <li><code>local line_comment = lexer.to_eol('//')</code></li>
    <li><code>local line_comment = lexer.to_eol(P('#') + ';')</code></li>
    </ul>


    <p>Return:</p>

    <ul>
    <li>pattern</li>
    </ul>


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

    <h3><code>lexer.tok