feat(bash): add indents query

It's pretty basic at the moment but already makes working with bash
scripts way easier.
This commit is contained in:
Sten Laane 2025-12-31 08:59:16 +02:00 committed by Christian Clason
parent 86cf4fb684
commit 4337799162
4 changed files with 105 additions and 1 deletions

View file

@ -0,0 +1,32 @@
[
(if_statement)
(for_statement)
(while_statement)
(case_statement)
(function_definition)
(compound_statement)
(subshell)
(command_substitution)
(do_group)
(case_item)
] @indent.begin
[
"fi"
"done"
"esac"
"}"
")"
"then"
"do"
(elif_clause)
(else_clause)
] @indent.branch
[
"fi"
"done"
"esac"
"}"
")"
] @indent.end