Debian Codegraph @

runtime/queries/opencl/highlights.scm

raw symbols SCIP
1 [
2 "sizeof"
3 ; @todo why does "uniform" break highlighting?
4 ; "uniform" ; OpenCL C 3.0.13 reserves this as a keyword, but doesn't seem to use it for anything
5 (function_qualifier)
6 ] @keyword
7
8 [
9 "enum"
10 "struct"
11 "typedef"
12 "union"
13 ] @keyword.storage.type
14
15 [
16 "extern"
17 "register"
18 (type_qualifier)
19 (access_qualifier)
20 (storage_class_specifier)
21 (address_space_qualifier)
22 ] @keyword.storage.modifier
23
24 [
25 "goto"
26 "break"
27 "continue"
28 ] @keyword.control
29
30 [
31 "do"
32 "for"
33 "while"
34 ] @keyword.control.repeat
35
36 [
37 "if"
38 "else"
39 "switch"
40 "case"
41 "default"
42 ] @keyword.control.conditional
43
44 "return" @keyword.control.return
45
46 [
47 "defined"
48 "#define"
49 "#elif"
50 "#else"
51 "#endif"
52 "#if"
53 "#ifdef"
54 "#ifndef"
55 "#include"
56 (preproc_directive)
57 ] @keyword.directive
58
59 (pointer_declarator "*" @type.builtin)
60 (abstract_pointer_declarator "*" @type.builtin)
61
62 [
63 "+"
64 "-"
65 "*"
66 "/"
67 "++"
68 "--"
69 "%"
70 "=="
71 "!="
72 ">"
73 "<"
74 ">="
75 "<="
76 "&&"
77 "||"
78 "!"
79 "&"
80 "|"
81 "^"
82 "~"
83 "<<"
84 ">>"
85 "="
86 "+="
87 "-="
88 "*="
89 "/="
90 "%="
91 "<<="
92 ">>="
93 "&="
94 "^="
95 "|="
96 "?"
97 ] @operator
98
99 (conditional_expression ":" @operator)
100
101 "..." @punctuation
102
103 ["," "." ":" ";" "->" "::"] @punctuation.delimiter
104
105 ["(" ")" "[" "]" "{" "}"] @punctuation.bracket
106
107 [(true) (false)] @constant.builtin.boolean
108
109 (identifier) @variable
110
111 ((identifier) @constant
112 (#match? @constant "^[A-Z][A-Z\\d_]*$"))
113
114 (enumerator name: (identifier) @type.enum.variant)
115
116 (string_literal) @string
117 (system_lib_string) @string
118
119 (null) @constant.builtin
120 (number_literal) @constant.numeric
121 (char_literal) @constant.character
122
123 (call_expression
124 function: (identifier) @function)
125 (call_expression
126 function: (field_expression
127 field: (field_identifier) @function))
128 (call_expression (argument_list (identifier) @variable))
129 (function_declarator
130 declarator: [(identifier) (field_identifier)] @function)
131 (parameter_declaration
132 declarator: (identifier) @variable.parameter)
133 (parameter_declaration
134 (pointer_declarator
135 declarator: (identifier) @variable.parameter))
136 (preproc_function_def
137 name: (identifier) @function.special)
138
139 (attribute
140 name: (identifier) @attribute)
141
142 (field_identifier) @variable.other.member
143 (statement_identifier) @label
144 (type_identifier) @type
145 (scalar_type) @type.builtin
146 (sized_type_specifier) @type.builtin
147 (vector_type) @type.builtin
148 (other_builtin_type) @type.builtin
149
150 (comment) @comment