From 6fbf63de865001dedafc227465e651926cf6f6dc Mon Sep 17 00:00:00 2001 From: Jonathan Lopez Date: Mon, 11 Nov 2024 21:03:31 +0100 Subject: [PATCH] patch 9.1.0853: filetype: kubernetes config file not recognized Problem: filetype: kubernetes config file not recognized Solution: detect '/.kube/config' file as yaml filetype (Jonathan Lopez) closes: #11076 Signed-off-by: Jonathan Lopez Signed-off-by: Christian Brabandt --- runtime/filetype.vim | 1 + src/testdir/test_filetype.vim | 3 ++- src/version.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 6e9f0b222a..fbccf22991 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2919,6 +2919,7 @@ au BufNewFile,BufRead *.y call dist#ft#FTy() " Yaml au BufNewFile,BufRead *.yaml,*.yml,*.eyaml setf yaml +au BufNewFile,BufRead */.kube/config setf yaml " Raml au BufNewFile,BufRead *.raml setf raml diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index cca619bfaa..09fc184ca6 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -885,7 +885,8 @@ def s:GetFilenameChecks(): dict> xsd: ['file.xsd'], xslt: ['file.xsl', 'file.xslt'], yacc: ['file.yy', 'file.yxx', 'file.y++'], - yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock'], + yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock', + '/home/user/.kube/config'], yang: ['file.yang'], yuck: ['file.yuck'], z8a: ['file.z8a'], diff --git a/src/version.c b/src/version.c index ceb17ac42f..4e5864f09f 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 853, /**/ 852, /**/