patch 9.0.2011: INI files not detected

Commit: 
https://github.com/vim/vim/commit/4a82bdfaa8022402b1ca0f0000c94c47a13f1014
Author: Martin Tournoij <[email protected]>
Date:   Wed Oct 11 21:20:06 2023 +0200

    patch 9.0.2011: INI files not detected
    
    Problem:  INI files not detected
    Solution: detect uppercase .INI as dosini files
    
    It previo~1 only worked for lower-case .ini files, but upperc~1 .INI is
    also somewhat common on account of DOS' old 8.3 upperc~2 only filena~1.
    
    closes: #13316
    
    Signed-off-by: Christian Brabandt <[email protected]>
    Co-authored-by: Martin Tournoij <[email protected]>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 3e7036cbb..700fd6a61 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1013,7 +1013,7 @@ au BufNewFile,BufRead ipf.conf,ipf6.conf,ipf.rules        
setf ipfilter
 au BufNewFile,BufRead *.4gl,*.4gh,*.m4gl       setf fgl
 
 " .INI file for MSDOS
-au BufNewFile,BufRead *.ini                    setf dosini
+au BufNewFile,BufRead *.ini,*.INI              setf dosini
 
 " SysV Inittab
 au BufNewFile,BufRead inittab                  setf inittab
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 25710116b..78e04d384 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -206,7 +206,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     dnsmasq: ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 
'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'],
     dockerfile: ['Containerfile', 'Dockerfile', 'dockerfile', 
'file.Dockerfile', 'file.dockerfile', 'Dockerfile.debian', 
'Containerfile.something'],
     dosbatch: ['file.bat'],
-    dosini: ['/etc/yum.conf', 'file.ini', 'npmrc', '.npmrc', 'php.ini', 
'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file', 'any/etc/yum.conf', 
'any/etc/yum.repos.d/file', 'file.wrap', 'file.vbp'],
+    dosini: ['/etc/yum.conf', 'file.ini', 'npmrc', '.npmrc', 'php.ini', 
'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file', 'any/etc/yum.conf', 
'any/etc/yum.repos.d/file', 'file.wrap', 'file.vbp', 'ja2.ini', 'JA2.INI'],
     dot: ['file.dot', 'file.gv'],
     dracula: ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 
'lpe', 'lvs', 'some-lpe', 'some-lvs'],
     dtd: ['file.dtd'],
diff --git a/src/version.c b/src/version.c
index 0479f2096..441acfd12 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 */
+/**/
+    2011,
 /**/
     2010,
 /**/

-- 
-- 
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/E1qqeuF-00196G-6p%40256bit.org.

Raspunde prin e-mail lui