Debian Codegraph @

runtime/queries/cue/highlights.scm

raw symbols SCIP
1 (identifier) @variable
2
3 ; Includes
4 [
5 "package"
6 "import"
7 ] @keyword.control.import
8
9 ; Namespaces
10 (package_identifier) @namespace
11
12 (import_spec
13 [
14 "."
15 "_"
16 ] @punctuation.special)
17
18 [
19 (attr_path)
20 (package_path)
21 ] @string.special.url ; In attributes
22
23 ; Attributes
24 (attribute) @attribute
25
26 ; Conditionals
27 "if" @keyword.control.conditional
28
29 ; Repeats
30 "for" @keyword.control.repeat
31
32 (for_clause
33 "_" @punctuation.special)
34
35 ; Keywords
36 "let" @keyword
37
38 "in" @keyword.operator
39
40 ; Operators
41 [
42 "+"
43 "-"
44 "*"
45 "/"
46 "|"
47 "&"
48 "||"
49 "&&"
50 "=="
51 "!="
52 "<"
53 "<="
54 ">"
55 ">="
56 "=~"
57 "!~"
58 "!"
59 "="
60 ] @operator
61
62 ; Fields & Properties
63 (field
64 (label
65 (identifier) @variable.other.member))
66
67 (selector_expression
68 (_)
69 (identifier) @variable.other.member)
70
71 ; Functions
72 (call_expression
73 function: (identifier) @function)
74
75 (call_expression
76 function: (selector_expression
77 (_)
78 (identifier) @function))
79
80 (call_expression
81 function: (builtin_function) @function)
82
83 (builtin_function) @function.builtin
84
85 ; Variables
86
87 ; Types
88 (primitive_type) @type.builtin
89
90 ((identifier) @type
91 (#match? @type "^_?#"))
92
93 [
94 (slice_type)
95 (pointer_type)
96 ] @type ; In attributes
97
98 ; Punctuation
99 [
100 ","
101 ":"
102 ] @punctuation.delimiter
103
104 [
105 "{"
106 "}"
107 "["
108 "]"
109 "("
110 ")"
111 "<"
112 ">"
113 ] @punctuation.bracket
114
115 [
116 (ellipsis)
117 "?"
118 ] @punctuation.special
119
120 ; Literals
121 (string) @string
122
123 [
124 (escape_char)
125 (escape_unicode)
126 ] @constant.character.escape
127
128 (number) @constant.numeric
129
130 (float) @constant.numeric.float
131
132 (si_unit
133 (float)
134 (_) @string.special.symbol)
135
136 (boolean) @constant.builtin.boolean
137
138 [
139 (null)
140 (top)
141 (bottom)
142 ] @constant.builtin
143
144 ; Interpolations
145 (interpolation
146 "\\(" @punctuation.special
147 (_)
148 ")" @punctuation.special)
149
150 (interpolation
151 "\\("
152 (identifier) @variable
153 ")")
154
155 ; Comments
156 (comment) @comment