summaryrefslogtreecommitdiff
path: root/vendor/queries/bash/indents.scm
blob: 5ca59a5724d21f9a1c1d99df2c8235dd760fea14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; Vendored from helix (https://github.com/helix-editor/helix) at 278b24389:
; runtime/queries/bash/indents.scm.
; Licensed under the Mozilla Public License 2.0 (vendor/queries/helix.LICENSE,
; https://mozilla.org/MPL/2.0/).

[
  (function_definition)
  (if_statement)
  (for_statement)
  (while_statement)
  (case_statement)
  (case_item)
  (pipeline)
] @indent

[
  "}"
  "fi"
  "elif"
  "else"
  "done"
  "esac"
] @outdent