changeset 31361:abb9d25924d8 v9.0.1014

patch 9.0.1014: zir files are not recognized Commit: https://github.com/vim/vim/commit/25201016d5043954689a4c9f7833935294149404 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 5 21:40:39 2022 +0000 patch 9.0.1014: zir files are not recognized Problem: Zir files are not recognized. Solution: Add a pattern for Zir files. (closes https://github.com/vim/vim/issues/11664)
author Bram Moolenaar <Bram@vim.org>
date Mon, 05 Dec 2022 22:45:03 +0100
parents 0457b77da257
children 7fc63cd1c462
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1855,8 +1855,9 @@ au BufNewFile,BufRead .tcshrc,*.tcsh,tcs
 " (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
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1014,
+/**/
     1013,
 /**/
     1012,