Skip to content

Commit d219542

Browse files
authored
Update list of builtin functions for Zig 0.14.0.
1 parent f023e86 commit d219542

File tree

1 file changed

+61
-62
lines changed

1 file changed

+61
-62
lines changed

syntax/zig.vim

Lines changed: 61 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -92,110 +92,96 @@ let s:zig_syntax_keywords = {
9292
\ , "callconv"
9393
\ , "noalias"]
9494
\ , 'zigBuiltinFn': ["align"
95+
\ , "@addrSpaceCast"
9596
\ , "@addWithOverflow"
97+
\ , "@alignCast"
98+
\ , "@alignOf"
9699
\ , "@as"
97100
\ , "@atomicLoad"
101+
\ , "@atomicRmw"
98102
\ , "@atomicStore"
99103
\ , "@bitCast"
104+
\ , "@bitOffsetOf"
105+
\ , "@bitSizeOf"
106+
\ , "@branchHint"
100107
\ , "@breakpoint"
101-
\ , "@trap"
102-
\ , "@alignCast"
103-
\ , "@alignOf"
108+
\ , "@mulAdd"
109+
\ , "@byteSwap"
110+
\ , "@bitReverse"
111+
\ , "@offsetOf"
112+
\ , "@call"
104113
\ , "@cDefine"
105114
\ , "@cImport"
106115
\ , "@cInclude"
107-
\ , "@cUndef"
108116
\ , "@clz"
109-
\ , "@cmpxchgWeak"
110117
\ , "@cmpxchgStrong"
118+
\ , "@cmpxchgWeak"
111119
\ , "@compileError"
112120
\ , "@compileLog"
113121
\ , "@constCast"
114122
\ , "@ctz"
123+
\ , "@cUndef"
124+
\ , "@cVaArg"
125+
\ , "@cVaCopy"
126+
\ , "@cVaEnd"
127+
\ , "@cVaStart"
115128
\ , "@disableInstrumentation"
116-
\ , "@popCount"
129+
\ , "@disableIntrinsics"
117130
\ , "@divExact"
118131
\ , "@divFloor"
119132
\ , "@divTrunc"
120133
\ , "@embedFile"
121-
\ , "@export"
122-
\ , "@extern"
123-
\ , "@tagName"
124-
\ , "@TagType"
134+
\ , "@enumFromInt"
135+
\ , "@errorFromInt"
125136
\ , "@errorName"
126-
\ , "@call"
127137
\ , "@errorReturnTrace"
128-
\ , "@fence"
129-
\ , "@fieldParentPtr"
138+
\ , "@errorCast"
139+
\ , "@export"
140+
\ , "@extern"
130141
\ , "@field"
142+
\ , "@fieldParentPtr"
131143
\ , "@FieldType"
132-
\ , "@unionInit"
144+
\ , "@floatCast"
145+
\ , "@floatFromInt"
133146
\ , "@frameAddress"
147+
\ , "@hasDecl"
148+
\ , "@hasField"
134149
\ , "@import"
135150
\ , "@inComptime"
136-
\ , "@newStackCall"
137-
\ , "@asyncCall"
138-
\ , "@ptrFromInt"
151+
\ , "@intCast"
152+
\ , "@intFromBool"
153+
\ , "@intFromEnum"
154+
\ , "@intFromError"
155+
\ , "@intFromFloat"
156+
\ , "@intFromPtr"
139157
\ , "@max"
140-
\ , "@min"
141158
\ , "@memcpy"
142159
\ , "@memset"
160+
\ , "@min"
161+
\ , "@wasmMemorySize"
162+
\ , "@wasmMemoryGrow"
143163
\ , "@mod"
144-
\ , "@mulAdd"
145164
\ , "@mulWithOverflow"
146-
\ , "@splat"
147-
\ , "@src"
148-
\ , "@bitOffsetOf"
149-
\ , "@byteOffsetOf"
150-
\ , "@offsetOf"
151-
\ , "@OpaqueType"
152165
\ , "@panic"
166+
\ , "@popCount"
153167
\ , "@prefetch"
154168
\ , "@ptrCast"
155-
\ , "@intFromPtr"
169+
\ , "@ptrFromInt"
156170
\ , "@rem"
157171
\ , "@returnAddress"
158-
\ , "@branchHint"
159-
\ , "@Type"
160-
\ , "@shuffle"
161-
\ , "@reduce"
162172
\ , "@select"
163-
\ , "@setRuntimeSafety"
164173
\ , "@setEvalBranchQuota"
165174
\ , "@setFloatMode"
175+
\ , "@setRuntimeSafety"
166176
\ , "@shlExact"
167-
\ , "@This"
168-
\ , "@hasDecl"
169-
\ , "@hasField"
170177
\ , "@shlWithOverflow"
171178
\ , "@shrExact"
179+
\ , "@shuffle"
172180
\ , "@sizeOf"
173-
\ , "@bitSizeOf"
181+
\ , "@splat"
182+
\ , "@reduce"
183+
\ , "@src"
174184
\ , "@sqrt"
175-
\ , "@byteSwap"
176-
\ , "@subWithOverflow"
177-
\ , "@intCast"
178-
\ , "@floatCast"
179-
\ , "@floatFromInt"
180-
\ , "@intFromFloat"
181-
\ , "@intFromBool"
182-
\ , "@errorCast"
183-
\ , "@truncate"
184-
\ , "@typeInfo"
185-
\ , "@typeName"
186-
\ , "@TypeOf"
187-
\ , "@atomicRmw"
188-
\ , "@errorFromInt"
189-
\ , "@intFromError"
190-
\ , "@enumFromInt"
191-
\ , "@intFromEnum"
192-
\ , "@setAlignStack"
193-
\ , "@frame"
194-
\ , "@Frame"
195-
\ , "@frameSize"
196-
\ , "@bitReverse"
197-
\ , "@Vector"
198-
\ , "@volatileCast"
199185
\ , "@sin"
200186
\ , "@cos"
201187
\ , "@tan"
@@ -208,9 +194,22 @@ let s:zig_syntax_keywords = {
208194
\ , "@floor"
209195
\ , "@ceil"
210196
\ , "@trunc"
211-
\ , "@wasmMemorySize"
212-
\ , "@wasmMemoryGrow"
213-
\ , "@round"]
197+
\ , "@round"
198+
\ , "@subWithOverflow"
199+
\ , "@tagName"
200+
\ , "@This"
201+
\ , "@trap"
202+
\ , "@truncate"
203+
\ , "@Type"
204+
\ , "@typeInfo"
205+
\ , "@typeName"
206+
\ , "@TypeOf"
207+
\ , "@unionInit"
208+
\ , "@Vector"
209+
\ , "@volatileCast"
210+
\ , "@workGroupId"
211+
\ , "@workGroupSize"
212+
\ , "@workItemId"]
214213
\ }
215214

216215
function! s:syntax_keyword(dict)

0 commit comments

Comments
 (0)