patch 9.1.0795: filetype: Vivado memory info file are not recognized

Commit: 
https://github.com/vim/vim/commit/0887e62bce3f46c20d2fa5f8ece1ca001e44ce63
Author: Wu, Zhenyu <wuzhe...@ustc.edu>
Date:   Mon Oct 21 20:54:13 2024 +0200

    patch 9.1.0795: filetype: Vivado memory info file are not recognized
    
    Problem:  filetype: Vivado memory info file are not recognized
    Solution: detect '*.mmi' memory info file as xml filetype
              (Wu, Zhenyu)
    
    References: https://docs.amd.com/r/en-US/ug1580-updatemem/MMI-File-Syntax
    
    closes: #15906
    
    Signed-off-by: Wu, Zhenyu <wuzhe...@ustc.edu>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index edc8d5a2c..e68448d50 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2815,7 +2815,7 @@ au BufNewFile,BufRead xorg.conf,xorg.conf-4       let 
b:xf86conf_xfree86_version = 4 |
 au BufNewFile,BufRead */etc/xinetd.conf                setf xinetd
 
 " Xilinx Vivado/Vitis project files and block design files
-au BufNewFile,BufRead *.xpr,*.xpfm,*.spfm,*.bxml               setf xml
+au BufNewFile,BufRead *.xpr,*.xpfm,*.spfm,*.bxml,*.mmi         setf xml
 au BufNewFile,BufRead *.bd,*.bda,*.xci                         setf json
 
 " XS Perl extension interface language
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index a93b56317..6b1574ecb 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -867,7 +867,10 @@ def s:GetFilenameChecks(): dict<list<string>>
     xinetd: ['/etc/xinetd.conf', '/etc/xinetd.d/file', 'any/etc/xinetd.conf', 
'any/etc/xinetd.d/file'],
     xkb: ['/usr/share/X11/xkb/compat/pc', '/usr/share/X11/xkb/geometry/pc', 
'/usr/share/X11/xkb/keycodes/evdev', '/usr/share/X11/xkb/symbols/pc', 
'/usr/share/X11/xkb/types/pc'],
     xmath: ['file.msc', 'file.msf'],
-    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'],
+    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'],
     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 09a93cf7d..6d7ef0324 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 */
+/**/
+    795,
 /**/
     794,
 /**/

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1t2xdU-00FQxT-GD%40256bit.org.

Raspunde prin e-mail lui