patch 9.1.0853: filetype: kubernetes config file not recognized
Commit:
https://github.com/vim/vim/commit/6fbf63de865001dedafc227465e651926cf6f6dc
Author: Jonathan Lopez <
jonatha...@gmail.com>
Date: Mon Nov 11 21:03:31 2024 +0100
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 <
jonatha...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 6e9f0b222..fbccf2299 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 cca619bfa..09fc184ca 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -885,7 +885,8 @@ def s:GetFilenameChecks(): dict<list<string>>
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 ceb17ac42..4e5864f09 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,
/**/