Debian Codegraph @

runtime/queries/hcl/rainbows.scm

raw symbols SCIP
1 ; HCL splits its delimiters into start/end nodes (block_start `{` / block_end
2 ; `}`, object_start/end, tuple_start/end), so the brackets aren't direct
3 ; children of the block/object/tuple that nests — scope those wrapping nodes
4 ; with rainbow.include-children so the nested delimiters still highlight.
5 ((block) @rainbow.scope (#set! rainbow.include-children))
6 ((object) @rainbow.scope (#set! rainbow.include-children))
7 ((tuple) @rainbow.scope (#set! rainbow.include-children))
8
9 ; A function call's parens are direct children, so no include-children needed.
10 (function_call) @rainbow.scope
11
12 [
13 "{" "}"
14 "[" "]"
15 "(" ")"
16 ] @rainbow.bracket