PHP-Twig.tmbundle
PHP-Twig.tmbundle copied to clipboard
Atomic statements and comments don't work with autoindentation
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
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?