Skip to content

Commit

Permalink
Add Bash indents (helix-editor#5149)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavincrawford authored and Frederik Vestre committed Feb 6, 2023
1 parent 32f56c5 commit bcc1021
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
| --- | --- | --- | --- | --- |
| astro || | | |
| awk ||| | `awk-language-server` |
| bash || | | `bash-language-server` |
| bash || | | `bash-language-server` |
| bass || | | `bass` |
| beancount || | | |
| bibtex || | | `texlab` |
Expand Down
11 changes: 11 additions & 0 deletions runtime/queries/bash/indents.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
(function_definition)
(if_statement)
(for_statement)
(case_statement)
(pipeline)
] @indent

[
"}"
] @outdent

0 comments on commit bcc1021

Please sign in to comment.