mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
vim-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: vim/vim#14741
63f2a5b8ad
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
@@ -952,6 +952,7 @@ local extension = {
|
|||||||
env = detect.sh,
|
env = detect.sh,
|
||||||
ksh = detect.ksh,
|
ksh = detect.ksh,
|
||||||
sh = detect.sh,
|
sh = detect.sh,
|
||||||
|
mdd = 'sh',
|
||||||
sieve = 'sieve',
|
sieve = 'sieve',
|
||||||
siv = 'sieve',
|
siv = 'sieve',
|
||||||
sig = detect.sig,
|
sig = detect.sig,
|
||||||
@@ -1208,7 +1209,6 @@ local extension = {
|
|||||||
zsh = 'zsh',
|
zsh = 'zsh',
|
||||||
zunit = 'zsh',
|
zunit = 'zsh',
|
||||||
['zsh-theme'] = 'zsh',
|
['zsh-theme'] = 'zsh',
|
||||||
mdd = 'zsh',
|
|
||||||
vala = 'vala',
|
vala = 'vala',
|
||||||
web = detect.web,
|
web = detect.web,
|
||||||
pl = detect.pl,
|
pl = detect.pl,
|
||||||
|
@@ -643,7 +643,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'sh': ['.bashrc', '.bash_profile', '.bash-profile', '.bash_logout', '.bash-logout', '.bash_aliases', '.bash-aliases', '.bash_history', '.bash-history',
|
\ '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',
|
\ '/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',
|
\ '/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'],
|
\ 'sieve': ['file.siv', 'file.sieve'],
|
||||||
\ 'sil': ['file.sil'],
|
\ 'sil': ['file.sil'],
|
||||||
\ 'simula': ['file.sim'],
|
\ 'simula': ['file.sim'],
|
||||||
@@ -856,7 +856,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', 'file.zsh-theme', 'file.zunit',
|
\ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', 'file.zsh-theme', 'file.zunit',
|
||||||
\ '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', '.zsh_history',
|
\ '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', '.zsh_history',
|
||||||
\ '.zcompdump-file', '.zlog', '.zlog-file', '.zsh', '.zsh-file',
|
\ '.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'],
|
\ 'help': [$VIMRUNTIME .. '/doc/help.txt'],
|
||||||
\ }
|
\ }
|
||||||
|
Reference in New Issue
Block a user