aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/zig/rainbows.scm
blob: af823e6de38085cbbe862d907d0b981fa2af8391 (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
[
  ; zig
  (ArrayTypeStart)
  ; using ()
  (AsmExpr)
  (AsmOutputItem)
  (ByteAlign)
  (CallConv)
  (ContainerDeclType)
  (ErrorSetDecl)
  (FnCallArguments)
  (ForPrefix)
  (GroupedExpr)
  (IfPrefix)
  (ParamDeclList)
  (SwitchExpr)
  (WhileContinueExpr)
  (WhilePrefix)
  ; for align expressions
  (PtrTypeStart)

  ; using {}
  (Block)
  (BlockExpr)
  (FormatSequence)
  (InitList)

  ; using []
  (SliceTypeStart)
  (SuffixOp)

  ; zig uses || for captures
  (Payload         "|" @rainbow.bracket)
  (PtrPayload      "|" @rainbow.bracket)
  (PtrIndexPayload "|" @rainbow.bracket)
] @rainbow.scope

[
  "(" ")"
  "{" "}"
  "[" "]"
] @rainbow.bracket