diff options
author | Wu, Zhenyu <wuzhenyu@ustc.edu> | 2024-05-10 12:11:56 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-05-10 13:01:54 +0200 |
commit | 63f2a5b8adfb570792b9a7cbfff1c350913bbe3e (patch) | |
tree | fb94bacee4c05b8f15486bf7c41acb10d5ea8b78 /runtime | |
parent | 887a38cee78c472fe406da60751fbba4a6ec19dd (diff) |
patch 9.1.0402: filetype: mdd files detected as zsh filetypev9.1.0402
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 <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index bc3a488ea6..3fc2e159de 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 |