motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit c339f13d9e840a9b4e392d104f9a0a2960f4a49a (tree)
parent e9da826f95d50835e283dc8215e3748ab72ae5e5
Author: LemonBoy <thatlemon@gmail.com>
Date:   Tue, 15 Jun 2021 10:44:40 +0200

Update builtin keywords

* Remove old and unsupported entries
* Add `@offsetOf` (previously known as `@byteOffsetOf`)
* Fix `@addWithOverflow` being split into `@add` and `@withOverflow`

Diffstat:
Msyntax/zig.vim | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/syntax/zig.vim b/syntax/zig.vim @@ -90,8 +90,7 @@ let s:zig_syntax_keywords = { \ , "callconv" \ , "noalias"] \ , 'zigBuiltinFn': ["align" - \ , "@add" - \ , "@WithOverflow" + \ , "@addWithOverflow" \ , "@as" \ , "@atomicLoad" \ , "@atomicStore" @@ -103,7 +102,6 @@ let s:zig_syntax_keywords = { \ , "@cImport" \ , "@cInclude" \ , "@cUndef" - \ , "@canImplicitCast" \ , "@clz" \ , "@cmpxchgWeak" \ , "@cmpxchgStrong" @@ -138,6 +136,7 @@ let s:zig_syntax_keywords = { \ , "@src" \ , "@bitOffsetOf" \ , "@byteOffsetOf" + \ , "@offsetOf" \ , "@OpaqueType" \ , "@panic" \ , "@ptrCast" @@ -151,8 +150,6 @@ let s:zig_syntax_keywords = { \ , "@setRuntimeSafety" \ , "@setEvalBranchQuota" \ , "@setFloatMode" - \ , "@setGlobalLinkage" - \ , "@setGlobalSection" \ , "@shlExact" \ , "@This" \ , "@hasDecl" @@ -175,8 +172,6 @@ let s:zig_syntax_keywords = { \ , "@typeName" \ , "@TypeOf" \ , "@atomicRmw" - \ , "@bytesToSlice" - \ , "@sliceToBytes" \ , "@intToError" \ , "@errorToInt" \ , "@intToEnum"