From 56121b4e27cb48efb17be55a969b2f0d725266f8 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 26 Jul 2020 10:20:08 +0200 Subject: Update --- syntax/zig.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'syntax/zig.vim') diff --git a/syntax/zig.vim b/syntax/zig.vim index a4e48d64..9ab64571 100644 --- a/syntax/zig.vim +++ b/syntax/zig.vim @@ -10,7 +10,7 @@ if exists("b:current_syntax") endif let b:current_syntax = "zig" -syn keyword zigStorage const var extern packed export pub noalias inline noinline comptime callconv volatile allowzero align linksection threadlocal +syn keyword zigStorage const var extern packed export pub noalias inline noinline comptime callconv volatile allowzero align linksection threadlocal anytype syn keyword zigStructure struct enum union error syn keyword zigStatement break return continue asm defer errdefer unreachable try catch async nosuspend await suspend resume syn keyword zigConditional if else switch and or orelse @@ -26,8 +26,8 @@ syn keyword zigBoolean true false syn match zigType "\v<[iu][1-9]\d*>" -syn match zigOperator display "\%(+%\?\|-%\?\|/\|*%\?\|=\|\^\|&\|?\||\|!\|>\|<\|%\|<<%\?\|>>\)=\?" -syn match zigArrowCharacter display "->" +syn match zigOperator display "\V\[-+/*=^&?|!><%~]" +syn match zigArrowCharacter display "\V->" syn match zigBuiltinFn "\v\@(addWithOverflow|as|atomicLoad|atomicStore|bitCast|breakpoint)>" syn match zigBuiltinFn "\v\@(alignCast|alignOf|cDefine|cImport|cInclude)>" -- cgit v1.2.3