diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-07-26 10:20:08 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-07-26 10:20:08 +0200 |
commit | 56121b4e27cb48efb17be55a969b2f0d725266f8 (patch) | |
tree | 30df0f431705cdb72b2014177ce3f0655287a81c /syntax/zig.vim | |
parent | 9c3c0bc082e0d58d15dc6f24d8a335931417e2f0 (diff) | |
download | vim-polyglot-56121b4e27cb48efb17be55a969b2f0d725266f8.tar.gz vim-polyglot-56121b4e27cb48efb17be55a969b2f0d725266f8.zip |
Update
Diffstat (limited to 'syntax/zig.vim')
-rw-r--r-- | syntax/zig.vim | 6 |
1 files changed, 3 insertions, 3 deletions
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)>" |