From 25201016d5043954689a4c9f7833935294149404 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 5 Dec 2022 21:40:39 +0000 Subject: [PATCH] patch 9.0.1014: zir files are not recognized Problem: Zir files are not recognized. Solution: Add a pattern for Zir files. (closes #11664) --- runtime/filetype.vim | 3 ++- src/testdir/test_filetype.vim | 1 + src/version.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 0a4be77b2..b326a435b 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index e0841ae0b..63b2b8187 100644 --- 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 index 473f7e828..9e4411eb6 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1014, /**/ 1013, /**/