php-twig icon indicating copy to clipboard operation
php-twig copied to clipboard

comments not highlighted correctly when nested

Open jmp909 opened this issue 8 years ago • 0 comments

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

jmp909 avatar Sep 07 '16 13:09 jmp909