]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1918: No filetype detection for Authzed filetypes v9.0.1918
authorMatt Polzin <mpolzin@workwithopal.com>
Wed, 20 Sep 2023 18:03:52 +0000 (20:03 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 20 Sep 2023 18:03:52 +0000 (20:03 +0200)
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>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 4b58381234821e9a85ffdc6418901ecde3ad15c1..9bf84e29f9c3401c97bf50e0e40727e70a12c658 100644 (file)
@@ -184,6 +184,9 @@ au BufNewFile,BufRead *.atl,*.as            setf atlas
 " 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
 
index 79065a036f94b7979a1326b0e7a1c00fd0532135..d9fd919d021ff3b62a6f92d3ce4c45a138963d87 100644 (file)
@@ -107,6 +107,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     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'],
index 7a42aee0e3f31201ea6ee7f7e36f9f3ee594e5ba..1ca184268cfb2f031ba7fb2d0c88577eaea127ab 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1918,
 /**/
     1917,
 /**/