patch 9.1.0971: filetype: SLNX files are not recognized

Commit: 
https://github.com/vim/vim/commit/3b3318b64043dcf29d6f06322739f695a5cc257e
Author: GustavEikaas <gustav.eik...@gmail.com>
Date:   Sun Dec 29 15:08:49 2024 +0100

    patch 9.1.0971: filetype: SLNX files are not recognized
    
    Problem:  filetype: SLNX files are not recognized
    Solution: detect '*.slnx' files as xml filetype
              (Gustav Eikaas)
    
    References:
    https://blog.ndepend.com/slnx-the-new-net-solution-xml-file-format/
    
https://blog.jetbrains.com/dotnet/2024/10/04/support-for-slnx-solution-files/
    
    closes: #16334
    
    Signed-off-by: GustavEikaas <gustav.eik...@gmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 1aca135cd..2a11f261c 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2414,6 +2414,7 @@ au BufNewFile,BufRead *.ice                       setf 
slice
 " Microsoft Visual Studio Solution
 au BufNewFile,BufRead *.sln                    setf solution
 au BufNewFile,BufRead *.slnf                   setf json
+au BufNewFile,BufRead *.slnx                   setf xml
 
 " Spice
 au BufNewFile,BufRead *.sp,*.spice             setf spice
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 5830c3dc2..f449d0d86 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -892,7 +892,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     xml: ['/etc/blkid.tab', '/etc/blkid.tab.old', 'file.xmi', 'file.csproj', 
'file.csproj.user', 'file.fsproj', 'file.fsproj.user', 'file.vbproj', 
'file.vbproj.user', 'file.ui',
           'file.tpm', '/etc/xdg/menus/file.menu', 'fglrxrc', 'file.xlf', 
'file.xliff', 'file.xul', 'file.wsdl', 'file.wpl', 'any/etc/blkid.tab', 
'any/etc/blkid.tab.old',
           'any/etc/xdg/menus/file.menu', 'file.atom', 'file.rss', 
'file.cdxml', 'file.psc1', 'file.mpd', 'fonts.conf', 'file.xcu', 'file.xlb', 
'file.xlc', 'file.xba', 'file.xpr',
-          'file.xpfm', 'file.spfm', 'file.bxml', 'file.mmi'],
+          'file.xpfm', 'file.spfm', 'file.bxml', 'file.mmi', 'file.slnx'],
     xmodmap: ['anyXmodmap', 'Xmodmap', 'some-Xmodmap', 'some-xmodmap', 
'some-xmodmap-file', 'xmodmap', 'xmodmap-file'],
     xpm: ['file.xpm'],
     xpm2: ['file.xpm2'],
diff --git a/src/version.c b/src/version.c
index 8e884afbf..b1ce2cce0 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 */
+/**/
+    971,
 /**/
     970,
 /**/

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tRu4O-00BgQ5-Q8%40256bit.org.

Raspunde prin e-mail lui