]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1014: zir files are not recognized v9.0.1014
authorBram Moolenaar <Bram@vim.org>
Mon, 5 Dec 2022 21:40:39 +0000 (21:40 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 5 Dec 2022 21:40:39 +0000 (21:40 +0000)
Problem:    Zir files are not recognized.
Solution:   Add a pattern for Zir files. (closes #11664)

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

index 0a4be77b228f015ee2e4c15d502a5005b6db3678..b326a435bd6fd93db8320cdef19d5e5d1c729d0c 100644 (file)
@@ -1855,8 +1855,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
+" Zig and Zir (Zig Intermediate Representation)
 au BufNewFile,BufRead *.zig                    setf zig
+au BufNewFile,BufRead *.zir                    setf zir
 
 " Z-Shell script (patterns ending in a star further below)
 au BufNewFile,BufRead .zprofile,*/etc/zprofile,.zfbfmarks  setf zsh
index e0841ae0bf82b8a515bd88333c1cb42e34ed343e..63b2b81877a0c29203ead6fa1728f1509ffc6d73 100644 (file)
@@ -652,6 +652,7 @@ let s:filename_checks = {
     \ 'zig': ['file.zig'],
     \ 'zimbu': ['file.zu'],
     \ 'zimbutempl': ['file.zut'],
+    \ 'zir': ['file.zir'],
     \ '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'],
     \
     \ 'help': [$VIMRUNTIME . '/doc/help.txt'],
index 473f7e828280008bc250943a76772802d1b83240..9e4411eb69172a44f5f48d48edf2e4997d216219 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1014,
 /**/
     1013,
 /**/