Skip to content

Commit c333d64

Browse files
chernetskyiclason
authored andcommitted
vim-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: vim/vim#18158 vim/vim@d5c89cc Co-authored-by: Volodymyr Chernetskyi <[email protected]>
1 parent b3d29f3 commit c333d64

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

runtime/lua/vim/filetype.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,8 @@ local extension = {
13921392
yaml = 'yaml',
13931393
eyaml = 'yaml',
13941394
mplstyle = 'yaml',
1395+
kyaml = 'yaml',
1396+
kyml = 'yaml',
13951397
grc = detect_line1('<%?xml', 'xml', 'yaml'),
13961398
yang = 'yang',
13971399
yuck = 'yuck',

test/old/testdir/test_filetype.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ func s:GetFilenameChecks() abort
927927
\ 'xsd': ['file.xsd'],
928928
\ 'xslt': ['file.xsl', 'file.xslt'],
929929
\ 'yacc': ['file.yy', 'file.yxx', 'file.y++'],
930-
\ 'yaml': ['file.yaml', 'file.yml', 'file.eyaml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock',
930+
\ 'yaml': ['file.yaml', 'file.yml', 'file.eyaml', 'file.kyaml', 'file.kyml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock',
931931
\ '/home/user/.kube/config', '.condarc', 'condarc', 'pixi.lock'],
932932
\ 'yang': ['file.yang'],
933933
\ 'yuck': ['file.yuck'],

0 commit comments

Comments
 (0)