nvim-treesitter/queries/cmake/indents.scm
Beartama 4c3912dfa8
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`
2023-06-29 20:26:23 +09:00

25 lines
377 B
Scheme

[
(normal_command)
(if_condition)
(foreach_loop)
(while_loop)
(function_def)
(macro_def)
(block_def)
] @indent.begin
[
(elseif_command)
(else_command)
(endif_command)
(endforeach_command)
(endwhile_command)
(endfunction_command)
(endmacro_command)
(endblock_command)
] @indent.branch
(")" @indent.branch)
(")" @indent.end)
(argument_list) @indent.auto