Add Bash indents (#5149)
commit012fc12f97f4e8e0fc38af351388e41e8bc142d8
authorgavincrawford <94875769+gavincrawford@users.noreply.github.com>
dateWed 14 Dec 2022, 07:42 (4 years ago)
parent436296b
book/src/generated/lang-support.md+1−1
@@ -2,7 +2,7 @@
22| --- | --- | --- | --- | --- |
33| astro | ✓ | | | |
44| awk | ✓ | ✓ | | `awk-language-server` |
5−| bash | ✓ | | | `bash-language-server` |
5+| bash | ✓ | | ✓ | `bash-language-server` |
66| bass | ✓ | | | `bass` |
77| beancount | ✓ | | | |
88| bibtex | ✓ | | | `texlab` |
runtime/queries/bash/indents.scmnew file+11
@@ -0,0 +1,11 @@
1+[
2+ (function_definition)
3+ (if_statement)
4+ (for_statement)
5+ (case_statement)
6+ (pipeline)
7+] @indent
8+
9+[
10+ "}"
11+] @outdent