mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
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:
committed by
Christian Brabandt
parent
df46115fc8
commit
28e5e7c484
@ -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
|
||||
|
@ -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'],
|
||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
266,
|
||||
/**/
|
||||
265,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user