patch 9.1.0110: filetype: add 'Config.in' filetype detection

Commit: 
https://github.com/vim/vim/commit/5f20f050efed3431beaf85739f0113e9ef0abd8e
Author: Brandon Maier <[email protected]>
Date:   Wed Feb 14 22:30:06 2024 +0100

    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: #14038
    
    Signed-off-by: Brandon Maier <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 708ce5adf..5ae632be9 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -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
@@ -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')
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 05d4754e5..f13c99dac 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index c347e9de0..a8e7488ee 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    110,
 /**/
     109,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1raN3u-00FDMh-C3%40256bit.org.

Raspunde prin e-mail lui