aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/fish/indents.scm
blob: 4984c4cb2d7a71785dd4ef9f375d26a0b9169d2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[
  (function_definition)
  (while_statement)
  (for_statement)
  (if_statement)
  (begin_statement)
  (switch_statement)
] @indent.begin

[
  "else" ; else and else if must both start the line with "else", so tag the string directly
  "case"
  "end"
] @indent.branch

"end" @indent.end

(comment) @indent.ignore