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

39
tests/indent/bash/test.sh Normal file
View file

@ -0,0 +1,39 @@
for i in 1 2 3; do
if [[ true ]]; then
echo "asd"
elif [ true ]; then
echo "dsa"
else
echo ""
fi
echo $i
done
while true; do
break
done
case $foo in
a) echo a ;;
b) echo b ;;
esac
function x() {
echo x
}
y() {
echo y
}
{
echo z
}
(
echo subshell
)
A=$(
echo command substitution
)