mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:9.1.0110: filetype: add 'Config.in' filetype detection
The 'Config.in' file type is for Buildroot configuration files.
Buildroot Config.in files use the same Kconfig backend as the Linux
kernel's Kconfig files.
Buildroot also has other filename variants that follow "Config.in.*",
they are used to distinguish multiple Config.in files in the same
directory.
See https://buildroot.org/downloads/manual/manual.html#_literal_config_in_literal_file
closes: vim/vim#14038
5f20f050ef
Co-authored-by: Brandon Maier <brandon.maier@collins.com>
This commit is contained in:
@@ -1348,6 +1348,7 @@ local filename = {
|
||||
['.justfile'] = 'just',
|
||||
Kconfig = 'kconfig',
|
||||
['Kconfig.debug'] = 'kconfig',
|
||||
['Config.in'] = 'kconfig',
|
||||
['lftp.conf'] = 'lftp',
|
||||
['.lftprc'] = 'lftp',
|
||||
['/.libao'] = 'libao',
|
||||
@@ -1739,6 +1740,7 @@ local pattern = {
|
||||
['[jt]sconfig.*%.json'] = 'jsonc',
|
||||
['[jJ]ustfile'] = 'just',
|
||||
['Kconfig%..*'] = starsetf('kconfig'),
|
||||
['Config%.in%..*'] = starsetf('kconfig'),
|
||||
['.*%.[Ss][Uu][Bb]'] = 'krl',
|
||||
['lilo%.conf.*'] = starsetf('lilo'),
|
||||
['.*/etc/logcheck/.*%.d.*/.*'] = starsetf('logcheck'),
|
||||
|
@@ -347,7 +347,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'jsp': ['file.jsp'],
|
||||
\ 'julia': ['file.jl'],
|
||||
\ 'just': ['justfile', 'Justfile', '.justfile', 'config.just'],
|
||||
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file'],
|
||||
\ 'kconfig': ['Kconfig', 'Kconfig.debug', 'Kconfig.file', 'Config.in', 'Config.in.host'],
|
||||
\ 'kdl': ['file.kdl'],
|
||||
\ 'kivy': ['file.kv'],
|
||||
\ 'kix': ['file.kix'],
|
||||
|
Reference in New Issue
Block a user