From: Wu, Zhenyu Date: Fri, 29 May 2026 18:25:25 +0000 (+0000) Subject: patch 9.2.0559: filetype: Kaitai struct files are not recogonized X-Git-Tag: v9.2.0559^0 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=73e619d699574f1fc96ce2f04c1e243748c4d7dc;p=thirdparty%2Fvim.git patch 9.2.0559: filetype: Kaitai struct files are not recogonized Problem: filetype: Kaitai struct files are not recogonized Solution: Detect *.ksy files as yaml filetype (Wu, Zhenyu) Reference: https://doc.kaitai.io/ closes: #20353 Signed-off-by: Wu, Zhenyu Signed-off-by: Christian Brabandt --- diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index a75d31bb59..c6fbd07d35 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -2336,6 +2336,8 @@ const ft_from_ext = { "kts": "kotlin", # KDE script "ks": "kscript", + # Kaitai struct + "ksy": "yaml", # Kyaml "kyaml": "yaml", "kyml": "yaml", diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index e2350871be..3e6a538a82 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -996,7 +996,7 @@ def s:GetFilenameChecks(): dict> xslt: ['file.xsl', 'file.xslt'], yacc: ['file.yy', 'file.yxx', 'file.y++'], 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', '/home/user/.kube/kuberc', '.condarc', 'condarc', '.mambarc', 'mambarc', 'pixi.lock', 'buf.lock'], + '/home/user/.kube/config', '/home/user/.kube/kuberc', '.condarc', 'condarc', '.mambarc', 'mambarc', 'pixi.lock', 'buf.lock', 'file.ksy'], yang: ['file.yang'], yara: ['file.yara', 'file.yar'], yuck: ['file.yuck'], diff --git a/src/version.c b/src/version.c index 23d96b9e47..f77ed07b9b 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 559, /**/ 558, /**/