feat(meson): add indents.scm

This commit is contained in:
Jędrzej Boczar 2024-01-19 16:08:23 +01:00 committed by Christian Clason
parent d198a75e2c
commit 6548bb64c1
10 changed files with 172 additions and 0 deletions

25
queries/meson/indents.scm Normal file
View file

@ -0,0 +1,25 @@
[
(list)
(dictionaries)
(normal_command)
(if_condition)
(foreach_command)
(ternaryoperator)
(ERROR
"?") ; support partial ternary
] @indent.begin
[
")"
"]"
"}"
(elseif_command)
(else_command)
"endif"
"endforeach"
] @indent.branch @indent.end
(experession_statement
object: (_)) @indent.begin
(comment) @indent.auto