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 057fdd7cd36e12dff0f65092d8e0861f36efdfe2 (tree)
parent c10a46c0b960c9e0b7ea9a7286b0ff9abccd19f3
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Thu, 13 Sep 2018 16:20:42 -0400

remove this keyword, add @This() function

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

diff --git a/syntax/zig.vim b/syntax/zig.vim @@ -14,7 +14,7 @@ syn keyword zigStatement break return continue asm defer errdefer unreachable tr syn keyword zigConditional if else switch and or orelse syn keyword zigRepeat while for -syn keyword zigConstant null undefined this +syn keyword zigConstant null undefined syn keyword zigKeyword fn use test syn keyword zigType bool f16 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 comptime_int comptime_float @@ -37,7 +37,7 @@ syn match zigBuiltinFn "\v\@(memcpy|memset|minValue|mod|mulWithOverflow)>" syn match zigBuiltinFn "\v\@(noInlineCall|offsetOf|OpaqueType|panic|ptrCast)>" syn match zigBuiltinFn "\v\@(ptrToInt|rem|returnAddress|setCold)>" syn match zigBuiltinFn "\v\@(setRuntimeSafety|setEvalBranchQuota|setFloatMode)>" -syn match zigBuiltinFn "\v\@(setGlobalLinkage|setGlobalSection|shlExact)>" +syn match zigBuiltinFn "\v\@(setGlobalLinkage|setGlobalSection|shlExact|This)>" syn match zigBuiltinFn "\v\@(shlWithOverflow|shrExact|sizeOf|sqrt|subWithOverflow|intCast|floatCast|intToFloat|floatToInt|boolToInt|errSetCast)>" syn match zigBuiltinFn "\v\@(truncate|typeId|typeInfo|typeName|typeOf|atomicRmw|bytesToSlice|sliceToBytes)>" syn match zigBuiltinFn "\v\@(intToError|errorToInt|intToEnum|enumToInt|setAlignStack|handle)>"