File tree Expand file tree Collapse file tree 1 file changed +150
-8
lines changed Expand file tree Collapse file tree 1 file changed +150
-8
lines changed Original file line number Diff line number Diff line change 1
1
(type) @type
2
- (statement) @keyword.operator
2
+ (type_keyword) @type.builtin
3
+
4
+ (type [
5
+ (local_var)
6
+ (global_var)
7
+ ] @type )
8
+
9
+ (argument) @parameter
10
+
11
+ (_ inst_name: _ @keyword.operator )
12
+
13
+ [
14
+ "catch"
15
+ "filter"
16
+ ] @keyword.operator
17
+
18
+ [
19
+ "to"
20
+ "nuw"
21
+ "nsw"
22
+ "exact"
23
+ "unwind"
24
+ "from"
25
+ "cleanup"
26
+ "swifterror"
27
+ "volatile"
28
+ "inbounds"
29
+ "inrange"
30
+ ] @keyword
31
+ (icmp_cond) @keyword
32
+ (fcmp_cond) @keyword
33
+
34
+ (fast_math) @keyword
35
+
36
+ (_ callee: _ @function )
37
+ (function_header name: _ @function )
38
+
39
+ [
40
+ "declare"
41
+ "define"
42
+ ] @keyword.function
43
+ (calling_conv) @keyword.function
44
+
45
+ [
46
+ "target"
47
+ "triple"
48
+ "datalayout"
49
+ "source_filename"
50
+ "addrspace"
51
+ "blockaddress"
52
+ "align"
53
+ "syncscope"
54
+ "within"
55
+ "uselistorder"
56
+ "uselistorder_bb"
57
+ "module"
58
+ "asm"
59
+ "sideeffect"
60
+ "alignstack"
61
+ "inteldialect"
62
+ "unwind"
63
+ "type"
64
+ "global"
65
+ "constant"
66
+ "externally_initialized"
67
+ "alias"
68
+ "ifunc"
69
+ "section"
70
+ "comdat"
71
+ "thread_local"
72
+ "localdynamic"
73
+ "initialexec"
74
+ "localexec"
75
+ "any"
76
+ "exactmatch"
77
+ "largest"
78
+ "nodeduplicate"
79
+ "samesize"
80
+ "distinct"
81
+ "attributes"
82
+ "vscale"
83
+ "no_cfi"
84
+ ] @keyword
85
+
86
+ (linkage_aux) @keyword
87
+ (dso_local) @keyword
88
+ (visibility) @keyword
89
+ (dll_storage_class) @keyword
90
+ (unnamed_addr) @keyword
91
+ (attribute_name) @keyword
92
+
93
+ (function_header [
94
+ (linkage)
95
+ (calling_conv)
96
+ (unnamed_addr)
97
+ ] @keyword.function )
98
+
3
99
(number) @number
4
100
(comment) @comment
5
101
(string) @string
102
+ (cstring) @string
6
103
(label) @label
7
- (keyword) @keyword
8
- "ret" @keyword.return
9
- (boolean) @boolean
104
+ (_ inst_name: "ret" @keyword.return )
10
105
(float) @float
11
- (constant) @constant
12
- (identifier) @variable
13
- (symbol) @punctuation.delimiter
14
- (bracket) @punctuation.bracket
106
+
107
+ [
108
+ (local_var)
109
+ (global_var)
110
+ ] @variable
111
+
112
+ [
113
+ (struct_value)
114
+ (array_value)
115
+ (vector_value)
116
+ ] @constructor
117
+
118
+ [
119
+ "("
120
+ ")"
121
+ "["
122
+ "]"
123
+ "{"
124
+ "}"
125
+ "<"
126
+ ">"
127
+ "<{"
128
+ "}>"
129
+ ] @punctuation.bracket
130
+
131
+ [
132
+ ","
133
+ ":"
134
+ ] @punctuation.delimiter
135
+
136
+ [
137
+ "="
138
+ "|"
139
+ "x"
140
+ "..."
141
+ ] @operator
142
+
143
+ [
144
+ "true"
145
+ "false"
146
+ ] @boolean
147
+
148
+ [
149
+ "undef"
150
+ "poison"
151
+ "null"
152
+ "none"
153
+ "zeroinitializer"
154
+ ] @constant.builtin
155
+
156
+ (ERROR) @error
You can’t perform that action at this time.
0 commit comments