# HG changeset patch # User Bram Moolenaar # Date 1670276703 -3600 # Node ID abb9d25924d87e07c6a92c18147c6ffa777520ac # Parent 0457b77da2575c93d84a0a5dd6452e944a4e71c8 patch 9.0.1014: zir files are not recognized Commit: https://github.com/vim/vim/commit/25201016d5043954689a4c9f7833935294149404 Author: Bram Moolenaar 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) diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- 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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- 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'], diff --git a/src/version.c b/src/version.c --- 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,