]> granicus.if.org Git - vim/commitdiff
patch 8.2.3769: zig files are not recognized v8.2.3769
authorGregory Anders <greg@gpanders.com>
Thu, 9 Dec 2021 20:54:21 +0000 (20:54 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 9 Dec 2021 20:54:21 +0000 (20:54 +0000)
Problem:    Zig files are not recognized.
Solution:   Add *.zig. (Gregory Anders, closes #9313)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 87d1f48f75afa15b30135e88c39c22958491dae1..2b98b48f55101c111739ed114859ed9a916e8ca3 100644 (file)
@@ -1650,6 +1650,9 @@ au BufNewFile,BufRead .tcshrc,*.tcsh,tcsh.tcshrc,tcsh.login       call dist#ft#SetFile
 " (patterns ending in a start further below)
 au BufNewFile,BufRead .login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias  call dist#ft#CSH()
 
+" Zig
+au BufNewFile,BufRead *.zig                    setf zig
+
 " Z-Shell script (patterns ending in a star further below)
 au BufNewFile,BufRead .zprofile,*/etc/zprofile,.zfbfmarks  setf zsh
 au BufNewFile,BufRead .zshrc,.zshenv,.zlogin,.zlogout,.zcompdump setf zsh
index c47f99d218d54af06cfc97783d2fee8a6d6f5e7c..619cfec0c90a360419f239830741a69a48ac6dae 100644 (file)
@@ -503,7 +503,7 @@ let s:filename_checks = {
     \ 'tex': ['file.latex', 'file.sty', 'file.dtx', 'file.ltx', 'file.bbl'],
     \ 'texinfo': ['file.texinfo', 'file.texi', 'file.txi'],
     \ 'texmf': ['texmf.cnf'],
-    \ 'text': ['file.text', 'README', 'LICENSE', 'COPYING', 'AUTHORS', '/usr/share/doc/bash-completion/AUTHORS', '/etc/apt/apt.conf.d/README', '/etc/Muttrc.d/README'],
+    \ 'text': ['file.text', 'file.txt', 'README', 'LICENSE', 'COPYING', 'AUTHORS', '/usr/share/doc/bash-completion/AUTHORS', '/etc/apt/apt.conf.d/README', '/etc/Muttrc.d/README'],
     \ 'tf': ['file.tf', '.tfrc', 'tfrc'],
     \ 'tidy': ['.tidyrc', 'tidyrc', 'tidy.conf'],
     \ 'tilde': ['file.t.html'],
@@ -569,6 +569,7 @@ let s:filename_checks = {
     \ 'yaml': ['file.yaml', 'file.yml'],
     \ 'raml': ['file.raml'],
     \ 'z8a': ['file.z8a'],
+    \ 'zig': ['file.zig'],
     \ 'zimbu': ['file.zu'],
     \ 'zimbutempl': ['file.zut'],
     \ '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'],
index 473b934430868ef11f89eee4cb2d1f9a1c3b7ad6..5aa6ce73e0639395b81157d9262e842ac9c141f8 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3769,
 /**/
     3768,
 /**/