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 <gaetan.lehmann@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Gaëtan Lehmann
2024-04-05 19:52:38 +02:00
committed by Christian Brabandt
parent df46115fc8
commit 28e5e7c484
3 changed files with 6 additions and 0 deletions

View 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

View 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'],

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
266,
/**/
265,
/**/