patch 9.1.0266: filetype: earthfile files are not recognized
Commit:
https://github.com/vim/vim/commit/28e5e7c48483254604506dbce5eb61396ff65808
Author: Gaëtan Lehmann <[email protected]>
Date: Fri Apr 5 19:52:38 2024 +0200
patch 9.1.0266: filetype: earthfile files are not recognized
Problem: filetype: earthfile files are not recognized
Solution: Detect 'Earthfile' as earthfile
(Gaëtan Lehmann)
closes: #14408
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 81ce17415..40b17a0ef 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 0683feff7..3ee1cd751 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index b24db2fe6..f1792f733 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 266,
/**/
265,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1rsnrF-00AIEu-Cy%40256bit.org.