From af40f9af335e0c8b167eac31ceace45b6a2e0565 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Wed, 12 Oct 2022 12:09:40 +0100 Subject: [PATCH] patch 9.0.0731: clang-tidy configuration files are not recognized Problem: clang-tidy configuration files are not recognized. Solution: Recognize clang-tidy files as yaml. (closes #11350) --- runtime/filetype.vim | 3 +++ src/testdir/test_filetype.vim | 2 +- src/version.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 98f8cceb9..b4bcc8012 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -369,6 +369,9 @@ au BufNewFile,BufRead *.ch call dist#ft#FTchange() " ChordPro au BufNewFile,BufRead *.chopro,*.crd,*.cho,*.crdpro,*.chordpro setf chordpro +" Clang-tidy +au BufNewFile,BufRead .clang-tidy setf yaml + " Clean au BufNewFile,BufRead *.dcl,*.icl setf clean diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 0449bfde1..17d846df8 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -640,7 +640,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'], + \ 'yaml': ['file.yaml', 'file.yml', '.clang-tidy'], \ 'yang': ['file.yang'], \ 'z8a': ['file.z8a'], \ 'zig': ['file.zig'], diff --git a/src/version.c b/src/version.c index 31d9776f7..b44101e72 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 731, /**/ 730, /**/ -- 2.40.0