Merge pull request #25717 from gpanders/vim-e08bfef88bd0

vim-patch:e08bfef88bd0, vim-patch:9.0.2053
This commit is contained in:
Gregory Anders
2023-10-19 14:30:19 -05:00
committed by GitHub
4 changed files with 20 additions and 16 deletions

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

@@ -1119,7 +1119,7 @@ local extension = {
yuck = 'yuck', yuck = 'yuck',
z8a = 'z8a', z8a = 'z8a',
zig = 'zig', zig = 'zig',
zir = 'zir', zon = 'zig',
zu = 'zimbu', zu = 'zimbu',
zut = 'zimbutempl', zut = 'zimbutempl',
zs = 'zserio', zs = 'zserio',

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"

View File

@@ -735,10 +735,9 @@ func s:GetFilenameChecks() abort
\ 'yang': ['file.yang'], \ 'yang': ['file.yang'],
\ 'yuck': ['file.yuck'], \ 'yuck': ['file.yuck'],
\ 'z8a': ['file.z8a'], \ 'z8a': ['file.z8a'],
\ 'zig': ['file.zig'], \ 'zig': ['file.zig', 'build.zig.zon'],
\ 'zimbu': ['file.zu'], \ 'zimbu': ['file.zu'],
\ 'zimbutempl': ['file.zut'], \ 'zimbutempl': ['file.zut'],
\ 'zir': ['file.zir'],
\ 'zserio': ['file.zs'], \ 'zserio': ['file.zs'],
\ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', '.zcompdump-file', '.zlog', '.zlog-file', '.zsh', '.zsh-file', 'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file'], \ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', '.zcompdump-file', '.zlog', '.zlog-file', '.zsh', '.zsh-file', 'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file'],
\ \