commit d94f1ac466da64247c8dfca23c9cdf1be372d8e0 (tree)
parent 24e516f658f315e52464f1a5d5f66d6418c4b3d7
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Mon, 19 Feb 2018 23:04:37 -0500
add some new keywords
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/syntax/zig.vim b/syntax/zig.vim
@@ -10,13 +10,13 @@ let b:current_syntax = "zig"
syn keyword zigStorage const var extern packed export pub noalias inline comptime nakedcc stdcallcc volatile align section
syn keyword zigStructure struct enum union
-syn keyword zigStatement break return continue asm defer errdefer unreachable try catch
+syn keyword zigStatement break return continue asm defer errdefer unreachable try catch async await suspend resume cancel
syn keyword zigConditional if else switch and or
syn keyword zigRepeat while for
syn keyword zigConstant null undefined this
syn keyword zigKeyword fn use test
-syn keyword zigType bool f32 f64 f128 void noreturn type error
+syn keyword zigType bool f32 f64 f128 void noreturn type error promise
syn keyword zigType i2 u2 i3 u3 i4 u4 i5 u5 i6 u6 i7 u7 i8 u8 i16 u16 u29 i29 i32 u32 i64 u64 i128 u128 isize usize
syn keyword zigType c_short c_ushort c_int c_uint c_long c_ulong c_longlong c_ulonglong c_longdouble c_void