PHP-Twig.tmbundle icon indicating copy to clipboard operation
PHP-Twig.tmbundle copied to clipboard

Atomic statements and comments don't work with autoindentation

Open Misiur opened this issue 10 years ago • 1 comments

I'm not sure if it's an issue with syntax doc or sublime itself. When you use statement like

{% if foo is bar  %}
    Hello!
{% endif %}

Intendation makes sense. But, when using statements which don't have closing tag, like

{% do 'that' %}
{# or #}
{% form_theme form '::anything.html.twig' %}

Next lines are waiting for closing tag which doesn't exist, and are unnecessarily indented. Similar story with comments

Misiur avatar Dec 15 '14 13:12 Misiur

Sorry for the delay in response. I can't reproduce this on my end, do you have the indentation preference file in the same directory as the syntax file? If so, can you provide a specific example in which you can reproduce this behavior?

uhnomoli avatar Mar 03 '15 19:03 uhnomoli