diff options
author | gavincrawford | 2022-12-14 14:42:11 +0000 |
---|---|---|
committer | GitHub | 2022-12-14 14:42:11 +0000 |
commit | 012fc12f97f4e8e0fc38af351388e41e8bc142d8 (patch) | |
tree | 0879e3cda9a5a4f802c1014f4864b45506698d33 | |
parent | 436296b76c671446aab8863b467155ff9e94d4fc (diff) |
Add Bash indents (#5149)
-rw-r--r-- | book/src/generated/lang-support.md | 2 | ||||
-rw-r--r-- | runtime/queries/bash/indents.scm | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index fa7b6edd..1400fa87 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -2,7 +2,7 @@ | --- | --- | --- | --- | --- | | astro | ✓ | | | | | awk | ✓ | ✓ | | `awk-language-server` | -| bash | ✓ | | | `bash-language-server` | +| bash | ✓ | | ✓ | `bash-language-server` | | bass | ✓ | | | `bass` | | beancount | ✓ | | | | | bibtex | ✓ | | | `texlab` | diff --git a/runtime/queries/bash/indents.scm b/runtime/queries/bash/indents.scm new file mode 100644 index 00000000..f2077037 --- /dev/null +++ b/runtime/queries/bash/indents.scm @@ -0,0 +1,11 @@ +[ + (function_definition) + (if_statement) + (for_statement) + (case_statement) + (pipeline) +] @indent + +[ + "}" +] @outdent |