]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1709: filetype: kyaml files are not recognized v9.1.1709
authorVolodymyr Chernetskyi <19735328+chernetskyi@users.noreply.github.com>
Fri, 29 Aug 2025 16:08:52 +0000 (18:08 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 29 Aug 2025 16:08:52 +0000 (18:08 +0200)
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 <19735328+chernetskyi@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index ab5a0b7b5ac3ff64cb3c949444406426044d50a3..0c9f341891218301857edc9044d29ed47de4748b 100644 (file)
@@ -1377,6 +1377,9 @@ au BufNewFile,BufRead *.ks                        setf kscript
 " Kconfig
 au BufNewFile,BufRead Kconfig,Kconfig.debug,Config.in  setf kconfig
 
+" Kyaml
+au BufNewFile,BufRead *.kyaml,*.kyml           setf yaml
+
 " Lace (ISE)
 au BufNewFile,BufRead *.ace,*.ACE              setf lace
 
index 1766212eaef468ddfa5f56165e25ba4aa59d9a6d..0d97cfd0c9f917818745281d3db5e176bf7a462f 100644 (file)
@@ -929,7 +929,7 @@ 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', 'file.kyaml', 'file.kyml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock',
            '/home/user/.kube/config', '.condarc', 'condarc', 'pixi.lock'],
     yang: ['file.yang'],
     yuck: ['file.yuck'],
index 7560da6ce1fe224f73463a17e463fcda8a0501c8..2baacceb96607ee42b5555b05372630a72751167 100644 (file)
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1709,
 /**/
     1708,
 /**/