patch 9.1.0402: filetype: mdd files detected as zsh filetype

Commit: 
https://github.com/vim/vim/commit/63f2a5b8adfb570792b9a7cbfff1c350913bbe3e
Author: Wu, Zhenyu <wuzhe...@ustc.edu>
Date:   Fri May 10 12:11:56 2024 +0200

    patch 9.1.0402: filetype: mdd files detected as zsh filetype
    
    Problem:  filetype: mdd files detected as zsh filetype
    Solution: detect '*.mdd' files as sh filetype, add links
              to reference documentation (Wu, Zhenyu)
    
    closes: #14741
    
    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 bc3a488ea..3fc2e159d 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -3094,12 +3094,14 @@ au BufNewFile,BufRead .zsh*,.zlog*,.zcompdump*  call 
s:StarSetf('zsh')
 au BufNewFile,BufRead zsh*,zlog*               call s:StarSetf('zsh')
 
 " Zsh module
+" mdd: 
https://github.com/zsh-users/zsh/blob/57248b88830ce56adc243a40c7773fb3825cab34/Etc/zsh-development-guide#L285-L288
+" mdh, pro: 
https://github.com/zsh-users/zsh/blob/57248b88830ce56adc243a40c7773fb3825cab34/Etc/zsh-development-guide#L268-L271
 " *.mdd will generate *.mdh, *.pro and *.epro.
 " module's *.c will #include *.mdh containing module dependency information and
 " *.pro containing all static declarations of *.c
 " *.epro contains all external declarations of *.c
 au BufNewFile,BufRead *.mdh,*.epro             setf c
-au BufNewFile,BufRead *.mdd                    setf zsh
+au BufNewFile,BufRead *.mdd                    setf sh
 
 " Help files match *.txt but should have a last line that is a modeline.
 au BufNewFile,BufRead *.txt
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index b057253d3..9e2253b24 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -642,7 +642,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     sh: ['.bashrc', '.bash_profile', '.bash-profile', '.bash_logout', 
'.bash-logout', '.bash_aliases', '.bash-aliases', '.bash_history', 
'.bash-history',
          '/tmp/bash-fc-3Ozjlw', '/tmp/bash-fc.3Ozjlw', 'PKGBUILD', 'APKBUILD', 
'file.bash', '/usr/share/doc/bash-completion/filter.sh',
          '/etc/udev/cdsymlinks.conf', 'any/etc/udev/cdsymlinks.conf', 
'file.bats', '.ash_history', 'any/etc/neofetch/config.conf', '.xprofile',
-         'user-dirs.defaults', 'user-dirs.dirs', 'makepkg.conf', 
'.makepkg.conf'],
+         'user-dirs.defaults', 'user-dirs.dirs', 'makepkg.conf', 
'.makepkg.conf', 'file.mdd'],
     sieve: ['file.siv', 'file.sieve'],
     sil: ['file.sil'],
     simula: ['file.sim'],
@@ -855,7 +855,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     zsh: ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', 
'file.zsh-theme', 'file.zunit',
           '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', 
'.zsh_history',
           '.zcompdump-file', '.zlog', '.zlog-file', '.zsh', '.zsh-file',
-          'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file', 
'file.mdd'],
+          'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file'],
 
     help: [$VIMRUNTIME .. '/doc/help.txt'],
     }
diff --git a/src/version.c b/src/version.c
index d166268cc..a8f47873f 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 */
+/**/
+    402,
 /**/
     401,
 /**/

-- 
-- 
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/E1s5ODY-00AF2i-6J%40256bit.org.

Raspunde prin e-mail lui