The “HTML (Twig)” grammar doesn't seem to cope with using Twig tags within HTML tags at the moment.
The HTML for the above line is (whitespace added for readability):
<div class="line">
<span class="source html twig">
<span class="leading-whitespace indent-guide invisible-character">····</span>
<span class="leading-whitespace indent-guide invisible-character">····</span>
<span class="meta tag block any html">
<span class="punctuation definition tag begin html"><</span>
<span class="entity name tag block any html">form</span>
<span class="entity other attribute-name html">method</span>
=
<span class="string quoted double html">
<span class="punctuation definition string begin html">"</span>
post
<span class="punctuation definition string end html">"</span>
</span>
{{
<span class="entity other attribute-name html">form</span>_enctype(<span class="entity other attribute-name html">form</span>)
}}<span class="punctuation definition tag end html">></span>
</span>
</span>
<span class="invisible-character">¬</span>
</div>
The “HTML (Twig)” grammar doesn't seem to cope with using Twig tags within HTML tags at the moment.
The HTML for the above line is (whitespace added for readability):