Skip to content

Commit 82d03f4

Browse files
committed
update syntax for new builtins
1 parent a9633f5 commit 82d03f4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

syntax/zig.vim

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ let s:zig_syntax_keywords = {
131131
\ , "@import"
132132
\ , "@newStackCall"
133133
\ , "@asyncCall"
134-
\ , "@intToPtr"
134+
\ , "@ptrFromInt"
135135
\ , "@max"
136136
\ , "@min"
137137
\ , "@memcpy"
@@ -148,7 +148,7 @@ let s:zig_syntax_keywords = {
148148
\ , "@panic"
149149
\ , "@prefetch"
150150
\ , "@ptrCast"
151-
\ , "@ptrToInt"
151+
\ , "@intFromPtr"
152152
\ , "@rem"
153153
\ , "@returnAddress"
154154
\ , "@setCold"
@@ -172,19 +172,19 @@ let s:zig_syntax_keywords = {
172172
\ , "@subWithOverflow"
173173
\ , "@intCast"
174174
\ , "@floatCast"
175-
\ , "@intToFloat"
176-
\ , "@floatToInt"
177-
\ , "@boolToInt"
175+
\ , "@floatFromInt"
176+
\ , "@intFromFloat"
177+
\ , "@intFromBool"
178178
\ , "@errSetCast"
179179
\ , "@truncate"
180180
\ , "@typeInfo"
181181
\ , "@typeName"
182182
\ , "@TypeOf"
183183
\ , "@atomicRmw"
184-
\ , "@intToError"
185-
\ , "@errorToInt"
186-
\ , "@intToEnum"
187-
\ , "@enumToInt"
184+
\ , "@errorFromInt"
185+
\ , "@intFromError"
186+
\ , "@enumFromInt"
187+
\ , "@intFromEnum"
188188
\ , "@setAlignStack"
189189
\ , "@frame"
190190
\ , "@Frame"

0 commit comments

Comments
 (0)