vim-patch:9.0.2053: zig filetype detection test wrong

Problem:  zig filetype detection test wrong
Solution: Remove .zir pattern, add new test for .zon pattern

closes: vim/vim#13389

a8c664a042

Co-authored-by: Gregory Anders <greg@gpanders.com>
This commit is contained in:
Gregory Anders 2023-10-19 13:05:09 -05:00
parent e6d352d8d7
commit 3ea13bca14

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'],
\ \