Debian Codegraph @

runtime/queries/styx/highlights.scm

raw symbols SCIP
1 (line_comment) @comment.line
2 (doc_comment) @comment.line.documentation
3
4 (escape_sequence) @constant.character.escape
5
6 (bare_scalar) @string
7 (quoted_scalar) @string
8 (raw_scalar) @string
9 (heredoc) @string
10
11 ; Heredoc language hint (metadata)
12 (heredoc_lang) @label
13
14 (unit) @constant.builtin
15
16 ; Tags - styled same as unit since @ is the tag sigil
17 (tag) @constant.builtin
18
19 ; Attributes - key in attribute syntax
20 ; Use @keyword or @punctuation.special to make > stand out
21 (attribute
22 key: (bare_scalar) @variable.other.member
23 ">" @keyword)
24
25 ; Keys in entries - any scalar in the key position (overrides @string above)
26 (entry
27 key: (expr
28 payload: (scalar (_) @variable.other.member)))
29
30 ; Sequence items are values, not keys (must come AFTER entry key rule to override)
31 (sequence
32 (expr
33 payload: (scalar (_) @string)))
34
35 [
36 "{"
37 "}"
38 "("
39 ")"
40 ] @punctuation.bracket
41
42 "," @punctuation.delimiter