nvim-treesitter/tests/indent/bash/test.sh
Sten Laane ab7f6caeac feat(bash): add indents query
It's pretty basic at the moment but already makes working with bash
scripts way easier.
2025-12-31 13:28:57 +02:00

39 lines
364 B
Bash

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
)