runtime(zig): Update Zig runtime files (#13388)

Update runtime files from upstream (https://github.com/zig/zig.vim) at
commit 54c216e5306a5c3878a60596aacb94dca8652ab9.

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Gregory Anders
2023-10-19 10:16:59 -05:00
committed by GitHub
parent 198734897e
commit e08bfef88b
3 changed files with 20 additions and 16 deletions

View File

@ -1998,9 +1998,8 @@ au BufNewFile,BufRead .tcshrc,*.tcsh,tcsh.tcshrc,tcsh.login call dist#ft#SetFile
" (patterns ending in a start further below) " (patterns ending in a start further below)
au BufNewFile,BufRead .login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias call dist#ft#CSH() au BufNewFile,BufRead .login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias call dist#ft#CSH()
" Zig and Zir (Zig Intermediate Representation) " Zig and Zig Object Notation (ZON)
au BufNewFile,BufRead *.zig setf zig au BufNewFile,BufRead *.zig,*.zon setf zig
au BufNewFile,BufRead *.zir setf zir
" Zserio " Zserio
au BufNewFile,BufRead *.zs setf zserio au BufNewFile,BufRead *.zs setf zserio

View File

@ -28,7 +28,7 @@ setlocal formatoptions-=t formatoptions+=croql
setlocal suffixesadd=.zig,.zir setlocal suffixesadd=.zig,.zir
if has('comments') if has('comments')
setlocal comments=:///,://!,://,:\\\\ setlocal comments=:///,://!,://
setlocal commentstring=//\ %s setlocal commentstring=//\ %s
endif endif
@ -53,7 +53,7 @@ endif
unlet! s:tmp_cwd unlet! s:tmp_cwd
if exists('g:zig_std_dir') if exists('g:zig_std_dir')
let &l:path = &l:path . ',' . g:zig_std_dir let &l:path = g:zig_std_dir . ',' . &l:path
endif endif
let b:undo_ftplugin = let b:undo_ftplugin =

View File

@ -34,6 +34,7 @@ let s:zig_syntax_keywords = {
\ , "usize" \ , "usize"
\ , "comptime_int" \ , "comptime_int"
\ , "comptime_float" \ , "comptime_float"
\ , "c_char"
\ , "c_short" \ , "c_short"
\ , "c_ushort" \ , "c_ushort"
\ , "c_int" \ , "c_int"
@ -96,6 +97,7 @@ let s:zig_syntax_keywords = {
\ , "@atomicStore" \ , "@atomicStore"
\ , "@bitCast" \ , "@bitCast"
\ , "@breakpoint" \ , "@breakpoint"
\ , "@trap"
\ , "@alignCast" \ , "@alignCast"
\ , "@alignOf" \ , "@alignOf"
\ , "@cDefine" \ , "@cDefine"
@ -107,6 +109,7 @@ let s:zig_syntax_keywords = {
\ , "@cmpxchgStrong" \ , "@cmpxchgStrong"
\ , "@compileError" \ , "@compileError"
\ , "@compileLog" \ , "@compileLog"
\ , "@constCast"
\ , "@ctz" \ , "@ctz"
\ , "@popCount" \ , "@popCount"
\ , "@divExact" \ , "@divExact"
@ -126,9 +129,10 @@ let s:zig_syntax_keywords = {
\ , "@unionInit" \ , "@unionInit"
\ , "@frameAddress" \ , "@frameAddress"
\ , "@import" \ , "@import"
\ , "@inComptime"
\ , "@newStackCall" \ , "@newStackCall"
\ , "@asyncCall" \ , "@asyncCall"
\ , "@intToPtr" \ , "@ptrFromInt"
\ , "@max" \ , "@max"
\ , "@min" \ , "@min"
\ , "@memcpy" \ , "@memcpy"
@ -145,7 +149,7 @@ let s:zig_syntax_keywords = {
\ , "@panic" \ , "@panic"
\ , "@prefetch" \ , "@prefetch"
\ , "@ptrCast" \ , "@ptrCast"
\ , "@ptrToInt" \ , "@intFromPtr"
\ , "@rem" \ , "@rem"
\ , "@returnAddress" \ , "@returnAddress"
\ , "@setCold" \ , "@setCold"
@ -169,25 +173,26 @@ let s:zig_syntax_keywords = {
\ , "@subWithOverflow" \ , "@subWithOverflow"
\ , "@intCast" \ , "@intCast"
\ , "@floatCast" \ , "@floatCast"
\ , "@intToFloat" \ , "@floatFromInt"
\ , "@floatToInt" \ , "@intFromFloat"
\ , "@boolToInt" \ , "@intFromBool"
\ , "@errSetCast" \ , "@errorCast"
\ , "@truncate" \ , "@truncate"
\ , "@typeInfo" \ , "@typeInfo"
\ , "@typeName" \ , "@typeName"
\ , "@TypeOf" \ , "@TypeOf"
\ , "@atomicRmw" \ , "@atomicRmw"
\ , "@intToError" \ , "@errorFromInt"
\ , "@errorToInt" \ , "@intFromError"
\ , "@intToEnum" \ , "@enumFromInt"
\ , "@enumToInt" \ , "@intFromEnum"
\ , "@setAlignStack" \ , "@setAlignStack"
\ , "@frame" \ , "@frame"
\ , "@Frame" \ , "@Frame"
\ , "@frameSize" \ , "@frameSize"
\ , "@bitReverse" \ , "@bitReverse"
\ , "@Vector" \ , "@Vector"
\ , "@volatileCast"
\ , "@sin" \ , "@sin"
\ , "@cos" \ , "@cos"
\ , "@tan" \ , "@tan"
@ -196,7 +201,7 @@ let s:zig_syntax_keywords = {
\ , "@log" \ , "@log"
\ , "@log2" \ , "@log2"
\ , "@log10" \ , "@log10"
\ , "@fabs" \ , "@abs"
\ , "@floor" \ , "@floor"
\ , "@ceil" \ , "@ceil"
\ , "@trunc" \ , "@trunc"