commit b0c2afdd248b08a4525cba3fc428205f37cf0aad (tree)
parent 182b9b03575db3a7fecdb3f24720793dbe972171
Author: heidezomp <48419392+heidezomp@users.noreply.github.com>
Date: Sat, 27 Jul 2019 22:52:41 +0200
add missing math builtins
add `@sin`, `@cos`, `@exp`, `@exp2`, `@ln`, `@log2`, `@log10`, `@fabs`, `@floor`, `@ceil`, `@trunc` and `@round`
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/syntax/zig.vim b/syntax/zig.vim
@@ -43,6 +43,7 @@ syn match zigBuiltinFn "\v\@(setGlobalLinkage|setGlobalSection|shlExact|This|has
syn match zigBuiltinFn "\v\@(shlWithOverflow|shrExact|sizeOf|sqrt|byteSwap|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|frame|Frame|frameSize|bitReverse|Vector)>"
+syn match zigBuiltinFn "\v\@(sin|cos|exp|exp2|ln|log2|log10|fabs|floor|ceil|trunc|round)>"
syn match zigDecNumber display "\<[0-9]\+\%(.[0-9]\+\)\=\%([eE][+-]\?[0-9]\+\)\="
syn match zigHexNumber display "\<0x[a-fA-F0-9]\+\%([a-fA-F0-9]\+\%([pP][+-]\?[0-9]\+\)\?\)\="