mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -04:00
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:
parent
86cf4fb684
commit
4337799162
4 changed files with 105 additions and 1 deletions
39
tests/indent/bash/test.sh
Normal file
39
tests/indent/bash/test.sh
Normal 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
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue