re><code>
    local dq_str = lexer.range('"')
    local sq_str = lexer.range("'")
    local string = token(lexer.STRING, dq_str + sq_str)
    </code></pre>

    <p>In this case, the lexer treats &lsquo;\&rsquo; as an escape character in a string
    sequence.</p>

    <p><strong>Numbers</strong></p>

    <p>Most programming languages have the same format for integer and float tokens,
    so it might be as simple as using a predefined LPeg pattern:</p>

    <pre><code>
    local number = token(lexer.NUMBER, 