Debian Codegraph @

runtime/queries/spade/highlights.scm

raw symbols SCIP
1 (self) @variable.builtin
2
3 (unit_definition (identifier) @function)
4
5 (parameter (identifier) @variable.parameter)
6
7 ((pipeline_reg_marker) @keyword)
8
9 (scoped_identifier
10 path: (identifier) @namespace)
11 (scoped_identifier
12 (scoped_identifier
13 name: (identifier) @namespace))
14
15 ((builtin_type) @type.builtin)
16
17 ((identifier) @type.builtin
18 (#any-of?
19 @type.builtin
20 "uint"
21 "Option"
22 "Memory"
23 "Fn"
24 "Entity"
25 "Pipeline"))
26
27 ((identifier) @type.enum.variant.builtin
28 (#any-of? @type.enum.variant.builtin "Some" "None"))
29
30 ((pipeline_stage_name) @label)
31 ((label) @label)
32 ((label_ref) @label)
33
34 ((stage_reference
35 stage: (identifier) @label))
36
37 [
38 "pipeline"
39 "let"
40 "set"
41 "entity"
42 "fn"
43 "reg"
44 "reset"
45 "initial"
46 "inst"
47 "assert"
48 "struct"
49 "enum"
50 "stage"
51 "impl"
52 "port"
53 "decl"
54 "mod"
55 "where"
56 "trait"
57 "for"
58 "pub"
59 "unsafe"
60 "type"
61 "as"
62 "initial"
63 ] @keyword
64
65 [
66 "wire"
67 "super"
68 "lib"
69 ] @keyword.storage
70
71 [
72 "use"
73 ] @keyword.control.import
74
75 [
76 "gen"
77 ] @keyword.directive
78
79 ((gen_if_expression ["if" "else"] @keyword.directive))
80 ((naked_gen_if_expression ["if" "else"] @keyword.directive))
81
82 ((attribute) ["#" "[" "]"] @punctuation.delimiter)
83
84 [
85 "else"
86 "if"
87 "match"
88 ] @keyword.control.conditional
89
90 (bool_literal) @constant.builtin.boolean
91 (int_literal) @constant.numeric.integer
92 (char_literal) @constant.character
93 (string_literal) @string
94
95 [
96 "&"
97 "inv"
98 "-"
99 "=>"
100 ">"
101 "<"
102 "::<"
103 "::$<"
104 "="
105 "->"
106 "~"
107 "!"
108 ] @operator
109
110
111 ((op_custom_infix) @operator)
112 ((op_add) @operator)
113 ((op_sub) @operator)
114 ((op_mul) @operator)
115 ((op_equals) @operator)
116 ((op_lt) @operator)
117 ((op_gt) @operator)
118 ((op_le) @operator)
119 ((op_ge) @operator)
120 ((op_lshift) @operator)
121 ((op_rshift) @operator)
122 ((op_bitwise_and) @operator)
123 ((op_bitwise_xor) @operator)
124 ((op_bitwise_or) @operator)
125 ((op_logical_and) @operator)
126 ((op_logical_or) @operator)
127
128
129 [
130 (line_comment)
131 (block_comment)
132 ] @comment
133
134 [
135 (doc_comment)
136 ] @comment.block.documentation
137
138
139 ((identifier) @type
140 (#match? @type "[A-Z]"))
141
142 ((scoped_identifier
143 name: (identifier) @type)
144 (#match? @type "^[A-Z]"))
145
146 ((identifier) @constant
147 (#match? @constant "^[A-Z][A-Z\\d_]*$"))
148