mirror of
https://github.com/neovim/neovim.git
synced 2025-11-11 13:05:37 +00:00
vim-patch:9.1.0266: filetype: earthfile files are not recognized (#28207)
Problem: filetype: earthfile files are not recognized
Solution: Detect 'Earthfile' as earthfile
(Gaëtan Lehmann)
closes: vim/vim#14408
28e5e7c484
Co-authored-by: Gaëtan Lehmann <gaetan.lehmann@gmail.com>
This commit is contained in:
@@ -1293,6 +1293,7 @@ local filename = {
|
|||||||
jbuild = 'dune',
|
jbuild = 'dune',
|
||||||
['dune-workspace'] = 'dune',
|
['dune-workspace'] = 'dune',
|
||||||
['dune-project'] = 'dune',
|
['dune-project'] = 'dune',
|
||||||
|
Earthfile = 'earthfile',
|
||||||
['.editorconfig'] = 'editorconfig',
|
['.editorconfig'] = 'editorconfig',
|
||||||
['elinks.conf'] = 'elinks',
|
['elinks.conf'] = 'elinks',
|
||||||
['mix.lock'] = 'elixir',
|
['mix.lock'] = 'elixir',
|
||||||
|
|||||||
@@ -221,6 +221,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'dylan': ['file.dylan'],
|
\ 'dylan': ['file.dylan'],
|
||||||
\ 'dylanintr': ['file.intr'],
|
\ 'dylanintr': ['file.intr'],
|
||||||
\ 'dylanlid': ['file.lid'],
|
\ 'dylanlid': ['file.lid'],
|
||||||
|
\ 'earthfile': ['Earthfile'],
|
||||||
\ 'ecd': ['file.ecd'],
|
\ 'ecd': ['file.ecd'],
|
||||||
\ 'edif': ['file.edf', 'file.edif', 'file.edo'],
|
\ 'edif': ['file.edf', 'file.edif', 'file.edo'],
|
||||||
\ 'editorconfig': ['.editorconfig'],
|
\ 'editorconfig': ['.editorconfig'],
|
||||||
|
|||||||
Reference in New Issue
Block a user