forked from aniani/vim
patch 9.1.0401: filetype: zsh module files are not recognized
Problem: filetype: zsh module files are not recognized Solution: Detect '*.mdh' and '*.epro' as C filetype, '*.mdd' as zsh filetype, determine zsh-modules '*.pro' from from it's content (Wu, Zhenyu) closes: #14737 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ce2ad9ffd7
commit
887a38cee7
@@ -131,7 +131,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
bst: ['file.bst'],
|
||||
bzl: ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'],
|
||||
bzr: ['bzr_log.any', 'bzr_log.file'],
|
||||
c: ['enlightenment/file.cfg', 'file.qc', 'file.c', 'some-enlightenment/file.cfg'],
|
||||
c: ['enlightenment/file.cfg', 'file.qc', 'file.c', 'some-enlightenment/file.cfg', 'file.mdh', 'file.epro'],
|
||||
cabal: ['file.cabal'],
|
||||
cabalconfig: ['cabal.config', expand("$HOME/.config/cabal/config")] + WhenConfigHome('$XDG_CONFIG_HOME/cabal/config'),
|
||||
cabalproject: ['cabal.project', 'cabal.project.local'],
|
||||
@@ -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'],
|
||||
'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file', 'file.mdd'],
|
||||
|
||||
help: [$VIMRUNTIME .. '/doc/help.txt'],
|
||||
}
|
||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
401,
|
||||
/**/
|
||||
400,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user