You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/runtime/queries/zig/rainbows.scm

43 lines
653 B
Scheme

[
; 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