Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filetype: add 'Config.in' filetype detection #14038

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runtime/filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ au BufNewFile,BufRead *.kt,*.ktm,*.kts setf kotlin
au BufNewFile,BufRead *.ks setf kscript

" Kconfig
au BufNewFile,BufRead Kconfig,Kconfig.debug setf kconfig
au BufNewFile,BufRead Kconfig,Kconfig.debug,Config.in setf kconfig

" Lace (ISE)
au BufNewFile,BufRead *.ace,*.ACE setf lace
Expand Down Expand Up @@ -2780,7 +2780,7 @@ au! BufNewFile,BufRead *jarg*
au BufNewFile,BufRead *.properties_??_??_* call s:StarSetf('jproperties')

" Kconfig
au BufNewFile,BufRead Kconfig.* call s:StarSetf('kconfig')
au BufNewFile,BufRead Kconfig.*,Config.in.* call s:StarSetf('kconfig')

" Lilo: Linux loader
au BufNewFile,BufRead lilo.conf* call s:StarSetf('lilo')
Expand Down
2 changes: 1 addition & 1 deletion src/testdir/test_filetype.vim
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def s:GetFilenameChecks(): dict<list<string>>
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'],
Expand Down
Loading