indents(cmake): dedent brackets, else, endwhile

* feat(cmake): dedent for all closing brackets

* feat(cmake): indent an argument according to its previous peer

* fix(cmake); fix typo, add dedent `endwhile`
This commit is contained in:
Beartama 2023-06-29 14:26:23 +03:00 committed by GitHub
parent e89fd9f963
commit 4c3912dfa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,13 +10,16 @@
[
(elseif_command)
(elseif_command)
(else_command)
(endif_command)
(endforeach_command)
(endwhile_command)
(endfunction_command)
(endmacro_command)
(endblock_command)
] @indent.branch
(normal_command ")" @indent.branch)
(normal_command ")" @indent.end)
(")" @indent.branch)
(")" @indent.end)
(argument_list) @indent.auto