mirror of
https://github.com/vim/vim.git
synced 2025-10-16 07:24:23 -04:00
patch 9.0.0798: clang format configuration files are not recognized
Problem: Clang format configuration files are not recognized. Solution: Use yaml for Clang format configuration files. (Marwin Glaser, closes #11398)
This commit is contained in:
committed by
Bram Moolenaar
parent
df63f05c3a
commit
3c708c4390
@@ -369,6 +369,9 @@ au BufNewFile,BufRead *.ch call dist#ft#FTchange()
|
||||
" ChordPro
|
||||
au BufNewFile,BufRead *.chopro,*.crd,*.cho,*.crdpro,*.chordpro setf chordpro
|
||||
|
||||
" Clang-format
|
||||
au BufNewFile,BufRead .clang-format setf yaml
|
||||
|
||||
" Clang-tidy
|
||||
au BufNewFile,BufRead .clang-tidy setf yaml
|
||||
|
||||
|
@@ -641,7 +641,7 @@ let s:filename_checks = {
|
||||
\ 'xsd': ['file.xsd'],
|
||||
\ 'xslt': ['file.xsl', 'file.xslt'],
|
||||
\ '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'],
|
||||
\ 'z8a': ['file.z8a'],
|
||||
\ 'zig': ['file.zig'],
|
||||
|
@@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
798,
|
||||
/**/
|
||||
797,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user