uhnomoli / PHP-Twig.tmbundle

A TextMate (and Sublime Text) bundle for Twig.
Other
400 stars 122 forks source link

Atomic statements and comments don't work with autoindentation #44

Open Misiur opened 9 years ago

Misiur commented 9 years ago

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

uhnomoli commented 9 years ago

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?