]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0266: filetype: earthfile files are not recognized v9.1.0266
authorGaëtan Lehmann <gaetan.lehmann@gmail.com>
Fri, 5 Apr 2024 17:52:38 +0000 (19:52 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 5 Apr 2024 17:52:38 +0000 (19:52 +0200)
Problem:  filetype: earthfile files are not recognized
Solution: Detect 'Earthfile' as earthfile
          (Gaëtan Lehmann)

closes: #14408

Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 81ce17415cc0145de39485ffb3ad93435a15d09a..40b17a0ef4e72ec7888ae42d29a5158813d77716 100644 (file)
@@ -665,6 +665,9 @@ au BufNewFile,BufRead *.dtd                 setf dtd
 " DTS/DSTI/DTSO (device tree files)
 au BufNewFile,BufRead *.dts,*.dtsi,*.dtso,*.its        setf dts
 
+" Earthfile
+au BufNewFile,BufRead Earthfile                        setf earthfile
+
 " EDIF (*.edf,*.edif,*.edn,*.edo) or edn
 au BufNewFile,BufRead *.ed\(f\|if\|o\)         setf edif
 au BufNewFile,BufRead *.edn
index 0683feff74a32de27bc14469b97a3b7c4ddc23db..3ee1cd751acbfd42f549813b0f3908f1ede5045e 100644 (file)
@@ -220,6 +220,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     dylan: ['file.dylan'],
     dylanintr: ['file.intr'],
     dylanlid: ['file.lid'],
+    earthfile: ['Earthfile'],
     ecd: ['file.ecd'],
     edif: ['file.edf', 'file.edif', 'file.edo'],
     editorconfig: ['.editorconfig'],
index b24db2fe6d49c68c7b71a47b1ff9fae3667b6401..f1792f7335fc2513e78e8b0d2ae1a1e7ffb3a652 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    266,
 /**/
     265,
 /**/