<p>Only when we find a matching end tag (outside a string), <code>$1==$S2</code>, we pop the state and exit the embedded mode. Note that we need <ahref="#@rematch"><codeclass="dt">@rematch</code></a> since the editor is ignoring our token classes until we actually exit the embedded mode (and we handle the close tag again in the <code>@root</code> state).</p>
<p> </p>
<h2id="htmlembed">Inspecting Tokens</h2>
<h2id="inspectingtokens">Inspecting Tokens</h2>
<p>Monaco provides an <code>Inspect Tokens</code> tool in browsers to help identify the tokens parsed from source code.</p>