]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0798: clang format configuration files are not recognized v9.0.0798
authorMarwin Glaser <marwin_g@icloud.com>
Wed, 19 Oct 2022 14:39:49 +0000 (15:39 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 19 Oct 2022 14:39:49 +0000 (15:39 +0100)
Problem:    Clang format configuration files are not recognized.
Solution:   Use yaml for Clang format configuration files. (Marwin Glaser,
            closes #11398)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 2b473300fc4727b2769dac9d1d8a7b965fa041a2..b802efa2b97cc4c69e3e9c38f62a3c8954d01244 100644 (file)
@@ -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
 
index 32c14ae66c96bcf93b2f77b7fb1da4b1005fa8d9..c6bacfbf71354d320100becb93be07416a2b776c 100644 (file)
@@ -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'],
index bf4994622bbc761e0fd63cf0ec7f2d83cda84e93..e612e53661cca11e24732ae35c6b3e46860c971e 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    798,
 /**/
     797,
 /**/