vim-patch:9.1.0247: filetype: bundle config files are not recognized

Problem:  filetype: bundle config files are not recognized
Solution: Detect '*/.bundle/config' as yaml
          (Wu, Zhenyu)

closes: vim/vim#14368

3f6fa93b3b

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
Christian Clason 2024-03-31 19:50:45 +02:00
parent 09869c3745
commit de1a54dfe1
2 changed files with 2 additions and 1 deletions

View File

@ -2052,6 +2052,7 @@ local pattern = {
-- Increase priority to run before the pattern below -- Increase priority to run before the pattern below
['XF86Config%-4.*'] = starsetf(detect.xfree86_v4, { priority = -math.huge + 1 }), ['XF86Config%-4.*'] = starsetf(detect.xfree86_v4, { priority = -math.huge + 1 }),
['XF86Config.*'] = starsetf(detect.xfree86_v3), ['XF86Config.*'] = starsetf(detect.xfree86_v3),
['.*/%.bundle/config'] = 'yaml',
['%.zcompdump.*'] = starsetf('zsh'), ['%.zcompdump.*'] = starsetf('zsh'),
-- .zlog* and zlog* -- .zlog* and zlog*
['%.?zlog.*'] = starsetf('zsh'), ['%.?zlog.*'] = starsetf('zsh'),

View File

@ -742,7 +742,7 @@ func s:GetFilenameChecks() abort
\ 'xsd': ['file.xsd'], \ 'xsd': ['file.xsd'],
\ 'xslt': ['file.xsl', 'file.xslt'], \ 'xslt': ['file.xsl', 'file.xslt'],
\ 'yacc': ['file.yy', 'file.yxx', 'file.y++'], \ 'yacc': ['file.yy', 'file.yxx', 'file.y++'],
\ 'yaml': ['file.yaml', 'file.yml', 'file.eyaml', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle'], \ 'yaml': ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle'],
\ 'yang': ['file.yang'], \ 'yang': ['file.yang'],
\ 'yuck': ['file.yuck'], \ 'yuck': ['file.yuck'],
\ 'z8a': ['file.z8a'], \ 'z8a': ['file.z8a'],