vim-patch:9.0.0798: clang format configuration files are not recognized (#20741)

Problem:    Clang format configuration files are not recognized.
Solution:   Use yaml for Clang format configuration files. (Marwin Glaser,
            closes vim/vim#11398)
3c708c4390
This commit is contained in:
ObserverOfTime 2022-10-19 20:08:01 +03:00 committed by GitHub
parent 96cf385a7f
commit fad558b6af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1676,6 +1676,7 @@ local filename = {
fglrxrc = 'xml', fglrxrc = 'xml',
['/etc/blkid.tab'] = 'xml', ['/etc/blkid.tab'] = 'xml',
['/etc/blkid.tab.old'] = 'xml', ['/etc/blkid.tab.old'] = 'xml',
['.clang-format'] = 'yaml',
['.clang-tidy'] = 'yaml', ['.clang-tidy'] = 'yaml',
['/etc/zprofile'] = 'zsh', ['/etc/zprofile'] = 'zsh',
['.zlogin'] = 'zsh', ['.zlogin'] = 'zsh',

View File

@ -642,7 +642,7 @@ let s:filename_checks = {
\ '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', '.clang-tidy'], \ 'yaml': ['file.yaml', 'file.yml', '.clang-format', '.clang-tidy'],
\ 'yang': ['file.yang'], \ 'yang': ['file.yang'],
\ 'z8a': ['file.z8a'], \ 'z8a': ['file.z8a'],
\ 'zig': ['file.zig'], \ 'zig': ['file.zig'],