reesef / php-twig

This is a conversion of Anomareh / PHP-Twig.tmbundle for atom
35 stars 19 forks source link

comments not highlighted correctly when nested #36

Open jmp909 opened 8 years ago

jmp909 commented 8 years ago

Hi

this shows as all commented (see screenshot) but Twig does not seem to work like that.. It will uncomment on the first #}

{# this is commented {# this was commented earlier #} but will break #}

Twig (at least the Timber version for Wordpress that I've tested) will show but will break #} on the page as it closed the comment on the first occurrence of #}

Sublime's PHP Twig by Anomareh (top image) does it the same way Twig does it.

admittedly production code would probably not be like that but during development we may comment out large chunks temporarily, so it's useful to see where the actual offending nested closing comment is

thanks j

Sublime/Anomareh sublime-anomareh-twig

Atom/Reesef atom-reesef-twig