changeset 33305:088edf774902 v9.0.1918

patch 9.0.1918: No filetype detection for Authzed filetypes Commit: https://github.com/vim/vim/commit/5790a54166793554d16f6a85d8824632860b8b37 Author: Matt Polzin <mpolzin@workwithopal.com> Date: Wed Sep 20 20:03:52 2023 +0200 patch 9.0.1918: No filetype detection for Authzed filetypes Problem: No filetype detection for Authzed filetypes Solution: Detect the *.zed file extension as authzed filetype closes: #13129 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Matt Polzin <mpolzin@workwithopal.com>
author Christian Brabandt <cb@256bit.org>
date Wed, 20 Sep 2023 20:15:05 +0200
parents b188c0fa5a2e
children 2d4bb2485c2a
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -184,6 +184,9 @@ au BufNewFile,BufRead *.atl,*.as		setf a
 " Atom is based on XML
 au BufNewFile,BufRead *.atom			setf xml
 
+" Authzed
+au BufNewFile,BufRead *.zed			setf authzed
+
 " Autoit v3
 au BufNewFile,BufRead *.au3			setf autoit
 
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -107,6 +107,7 @@ def s:GetFilenameChecks(): dict<list<str
     asterisk: ['asterisk/file.conf', 'asterisk/file.conf-file', 'some-asterisk/file.conf', 'some-asterisk/file.conf-file'],
     astro: ['file.astro'],
     atlas: ['file.atl', 'file.as'],
+    authzed: ['schema.zed'],
     autohotkey: ['file.ahk'],
     autoit: ['file.au3'],
     automake: ['GNUmakefile.am', 'makefile.am', 'Makefile.am'],
--- a/src/version.c
+++ b/src/version.c
@@ -700,6 +700,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1918,
+/**/
     1917,
 /**/
     1916,