aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/liquidsoap/indents.scm
blob: 7cb5935fb50737fa5e670373009f78499b500632 (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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[
  "%ifdef"
  "%ifndef"
  "%ifencoder"
  "%ifnencoder"
  "%ifversion"
  "%else"
  "%endif"
  "%argsof"
  "%include"
] @indent.zero

[
  "if"
  "def"
  "let"
  "for"
  "while"
  "try"
  "{"
  "["
  "("
] @indent.begin

(ERROR
  "def") @indent.begin

(def
  "def_end" @indent.end)

(if
  "if_end" @indent.end)

(block
  "block_end" @indent.end)

(for
  "for_end" @indent.end)

(while
  "while_end" @indent.end)

(try
  "try_end" @indent.end)

[
  "then"
  "do"
  "else"
  "elsif"
  "catch"
] @indent.branch

[
  "def_end"
  "if_end"
  "block_end"
  "for_end"
  "while_end"
  "try_end"
  "}"
  "]"
  ")"
] @indent.branch @indent.end

(comment) @indent.auto