From 4c3912dfa865e3ee97c8164322847b8b487779b2 Mon Sep 17 00:00:00 2001 From: Beartama <8091245+uyha@users.noreply.github.com> Date: Thu, 29 Jun 2023 14:26:23 +0300 Subject: [PATCH] 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` --- queries/cmake/indents.scm | 9 ++++++--- 1 file 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