It seems the indentation logic is purely based on { and }, without taking the lines containing TEMPLATE_BRACKET_OPENING_TAG and TEMPLATE_BRACKET_CLOSING_TAG into consideration.
Unmatched quotes inside comments breaks the indentation.
Without the changes in this PR, blocks like this:
server {
# My comment with an unmatched '
location / {
root /var/www/foo;
}
}
will be transformed into this:
server {
# My comment with an unmatched '
location / {
root /var/www/foo;
}
}
It seems the indentation logic is purely based on{
and}
, without taking the lines containingTEMPLATE_BRACKET_OPENING_TAG
andTEMPLATE_BRACKET_CLOSING_TAG
into consideration.Unmatched quotes inside comments breaks the indentation.
Without the changes in this PR, blocks like this:
will be transformed into this: