Skip to content

Commit d5c89cc

Browse files
chernetskyichrisbra
authored andcommitted
patch 9.1.1709: filetype: kyaml files are not recognized
Problem: filetype: kyaml files are not recognized Solution: Detect *.kyml files as yaml filetype (Volodymyr Chernetskyi) References: - https://kubernetes.io/blog/2025/08/27/kubernetes-v1-34-release/#alpha-support-for-kyaml-a-kubernetes-dialect-of-yaml closes: #18158 Signed-off-by: Volodymyr Chernetskyi <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 7239d95 commit d5c89cc

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

runtime/filetype.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,9 @@ au BufNewFile,BufRead *.ks setf kscript
13771377
" Kconfig
13781378
au BufNewFile,BufRead Kconfig,Kconfig.debug,Config.in setf kconfig
13791379

1380+
" Kyaml
1381+
au BufNewFile,BufRead *.kyaml,*.kyml setf yaml
1382+
13801383
" Lace (ISE)
13811384
au BufNewFile,BufRead *.ace,*.ACE setf lace
13821385

src/testdir/test_filetype.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ def s:GetFilenameChecks(): dict<list<string>>
929929
xsd: ['file.xsd'],
930930
xslt: ['file.xsl', 'file.xslt'],
931931
yacc: ['file.yy', 'file.yxx', 'file.y++'],
932-
yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock',
932+
yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'file.kyaml', 'file.kyml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock',
933933
'/home/user/.kube/config', '.condarc', 'condarc', 'pixi.lock'],
934934
yang: ['file.yang'],
935935
yuck: ['file.yuck'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,8 @@ static char *(features[]) =
724724

725725
static int included_patches[] =
726726
{ /* Add new patch number below this line */
727+
/**/
728+
1709,
727729
/**/
728730
1708,
729731
/**/

0 commit comments

Comments
 (0)