vim-patch:9.0.0731: clang-tidy configuration files are not recognized (#20620)

Problem:    clang-tidy configuration files are not recognized.
Solution:   Recognize clang-tidy files as yaml. (closes vim/vim#11350)
af40f9af33
This commit is contained in:
Christian Clason 2022-10-12 15:23:42 +02:00 committed by GitHub
parent eeeb6c80d8
commit 4f305fba14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -370,6 +370,9 @@ au BufNewFile,BufRead *.ch call dist#ft#FTchange()
" ChordPro " ChordPro
au BufNewFile,BufRead *.chopro,*.crd,*.cho,*.crdpro,*.chordpro setf chordpro au BufNewFile,BufRead *.chopro,*.crd,*.cho,*.crdpro,*.chordpro setf chordpro
" Clang-tidy
au BufNewFile,BufRead .clang-tidy setf yaml
" Clean " Clean
au BufNewFile,BufRead *.dcl,*.icl setf clean au BufNewFile,BufRead *.dcl,*.icl setf clean

View File

@ -1666,6 +1666,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-tidy'] = 'yaml',
['/etc/zprofile'] = 'zsh', ['/etc/zprofile'] = 'zsh',
['.zlogin'] = 'zsh', ['.zlogin'] = 'zsh',
['.zlogout'] = 'zsh', ['.zlogout'] = 'zsh',

View File

@ -641,7 +641,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'], \ 'yaml': ['file.yaml', 'file.yml', '.clang-tidy'],
\ 'yang': ['file.yang'], \ 'yang': ['file.yang'],
\ 'z8a': ['file.z8a'], \ 'z8a': ['file.z8a'],
\ 'zig': ['file.zig'], \ 'zig': ['file.zig'],