the child lexer. However, in this case, call
    <a href="#lexer.embed"><code>lexer.embed()</code></a> with switched arguments. For example, in the PHP lexer:</p>

    <pre><code>
    local html = lexer.load('html')
    local php_start_rule = token('php_tag', '&lt;?php ')
    local php_end_rule = token('php_tag', '?&gt;')
    lex:add_style('php_tag', lexer.styles.embedded)
    html:embed(lex, php_start_rule, php_end_rule)
    </code></pre>

    <p><a id="lexer.Lexers.with.Complex.State"></a></p>

    <h4>Le