diff options
| author | Beartama <8091245+uyha@users.noreply.github.com> | 2023-06-29 14:26:23 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-29 20:26:23 +0900 |
| commit | 4c3912dfa865e3ee97c8164322847b8b487779b2 (patch) | |
| tree | 0c80f0fa5b3a5f4e8d9098afffa86c2aa42648c1 /queries | |
| parent | Update README (diff) | |
| download | nvim-treesitter-4c3912dfa865e3ee97c8164322847b8b487779b2.tar nvim-treesitter-4c3912dfa865e3ee97c8164322847b8b487779b2.tar.gz nvim-treesitter-4c3912dfa865e3ee97c8164322847b8b487779b2.tar.bz2 nvim-treesitter-4c3912dfa865e3ee97c8164322847b8b487779b2.tar.lz nvim-treesitter-4c3912dfa865e3ee97c8164322847b8b487779b2.tar.xz nvim-treesitter-4c3912dfa865e3ee97c8164322847b8b487779b2.tar.zst nvim-treesitter-4c3912dfa865e3ee97c8164322847b8b487779b2.zip | |
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`
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/cmake/indents.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/queries/cmake/indents.scm b/queries/cmake/indents.scm index 0c3da0013..787cc2c98 100644 --- a/queries/cmake/indents.scm +++ b/queries/cmake/indents.scm @@ -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 |
