mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
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:
parent
e89fd9f963
commit
4c3912dfa8
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue