EXSyst / php-twig

This is a conversion of Anomareh / PHP-Twig.tmbundle for atom
https://atom.io/packages/language-twig
4 stars 4 forks source link

Highlighting Twig tags within HTML tags #2

Closed jaikdean closed 10 years ago

jaikdean commented 10 years ago

The “HTML (Twig)” grammar doesn't seem to cope with using Twig tags within HTML tags at the moment.

screen shot 2014-07-21 at 14 31 46

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">&lt;</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">&gt;</span>
        </span>
    </span>
    <span class="invisible-character">¬</span>
</div>
GuilhemN commented 10 years ago

Thanks for this issue. A new version arrive soon !