Skip to content

comments not highlighted correctly when nested #36

@jmp909

Description

@jmp909

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions