Skip to content

Commit c339f13

Browse files
LemonBoyhaze
authored andcommitted
Update builtin keywords
* Remove old and unsupported entries * Add `@offsetOf` (previously known as `@byteOffsetOf`) * Fix `@addWithOverflow` being split into `@add` and `@withOverflow`
1 parent e9da826 commit c339f13

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

syntax/zig.vim

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ let s:zig_syntax_keywords = {
9090
\ , "callconv"
9191
\ , "noalias"]
9292
\ , 'zigBuiltinFn': ["align"
93-
\ , "@add"
94-
\ , "@WithOverflow"
93+
\ , "@addWithOverflow"
9594
\ , "@as"
9695
\ , "@atomicLoad"
9796
\ , "@atomicStore"
@@ -103,7 +102,6 @@ let s:zig_syntax_keywords = {
103102
\ , "@cImport"
104103
\ , "@cInclude"
105104
\ , "@cUndef"
106-
\ , "@canImplicitCast"
107105
\ , "@clz"
108106
\ , "@cmpxchgWeak"
109107
\ , "@cmpxchgStrong"
@@ -138,6 +136,7 @@ let s:zig_syntax_keywords = {
138136
\ , "@src"
139137
\ , "@bitOffsetOf"
140138
\ , "@byteOffsetOf"
139+
\ , "@offsetOf"
141140
\ , "@OpaqueType"
142141
\ , "@panic"
143142
\ , "@ptrCast"
@@ -151,8 +150,6 @@ let s:zig_syntax_keywords = {
151150
\ , "@setRuntimeSafety"
152151
\ , "@setEvalBranchQuota"
153152
\ , "@setFloatMode"
154-
\ , "@setGlobalLinkage"
155-
\ , "@setGlobalSection"
156153
\ , "@shlExact"
157154
\ , "@This"
158155
\ , "@hasDecl"
@@ -175,8 +172,6 @@ let s:zig_syntax_keywords = {
175172
\ , "@typeName"
176173
\ , "@TypeOf"
177174
\ , "@atomicRmw"
178-
\ , "@bytesToSlice"
179-
\ , "@sliceToBytes"
180175
\ , "@intToError"
181176
\ , "@errorToInt"
182177
\ , "@intToEnum"

0 commit comments

Comments
 (0)