Skip to content

Commit 537c1cf

Browse files
committed
map async related keywords to a zigAsync group and link it to Keyword
The nosuspend keyword is syntactically different from the other keywords so this mapping isn't quite right.
1 parent a2d7c41 commit 537c1cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

syntax/zig.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ syntax keyword zigStorageClass
2626
syntax keyword zigDummyVariable _
2727
syntax keyword zigKeyword var const fn try test pub comptime
2828
syntax keyword zigStatement return break continue asm defer errdefer
29-
syntax keyword zigMacro nosuspend suspend resume export extern
29+
syntax keyword zigMacro export extern
30+
syntax keyword zigAsync nosuspend suspend resume
3031
syntax keyword zigPreProc addrspace align callconv catch inline noalias noinline threadlocal
3132
syntax keyword zigBuiltinFn @addrSpaceCast @addWithOverflow @alignCast @alignOf @as @atomicLoad @atomicRmw @atomicStore @bitCast @bitOffsetOf @bitSizeOf @branchHint @breakpoint @mulAdd @byteSwap @bitReverse @offsetOf @call @cDefine @cImport @cInclude @clz @cmpxchgStrong @cmpxchgWeak @compileError @compileLog @constCast @ctz @cUndef @cVaArg @cVaCopy @cVaEnd @cVaStart @disableInstrumentation @disableIntrinsics @divExact @divFloor @divTrunc @embedFile @enumFromInt @errorFromInt @errorName @errorReturnTrace @errorCast @export @extern @field @fieldParentPtr @FieldType @floatCast @floatFromInt @frameAddress @hasDecl @hasField @import @inComptime @intCast @intFromBool @intFromEnum @intFromError @intFromFloat @intFromPtr @max @memcpy @memmove @memset @min @wasmMemorySize @wasmMemoryGrow @mod @mulWithOverflow @panic @popCount @prefetch @ptrCast @ptrFromInt @rem @returnAddress @select @setEvalBranchQuota @setFloatMode @setRuntimeSafety @shlExact @shlWithOverflow @shrExact @shuffle @sizeOf @splat @reduce @src @sqrt @sin @cos @tan @exp @exp2 @log @log2 @log10 @abs @floor @ceil @trunc @round @subWithOverflow @tagName @This @trap @truncate @Type @typeInfo @typeName @TypeOf @unionInit @Vector @volatileCast @workGroupId @workGroupSize @workItemId
3233

@@ -97,6 +98,7 @@ highlight default link zigConditional Conditional
9798
highlight default link zigComparatorWord zigStatement
9899
highlight default link zigRepeat Repeat
99100
highlight default link zigSpecial Special
101+
highlight default link zigAsync Keyword
100102
highlight default link zigPreProc PreProc
101103
highlight default link zigException Exception
102104

0 commit comments

Comments
 (0)