Commit: patch 9.2.0559: filetype: Kaitai struct files are not recogonized

0 views
Skip to first unread message

Christian Brabandt

unread,
May 29, 2026, 2:30:14 PM (yesterday) May 29
to vim...@googlegroups.com
patch 9.2.0559: filetype: Kaitai struct files are not recogonized

Commit: https://github.com/vim/vim/commit/73e619d699574f1fc96ce2f04c1e243748c4d7dc
Author: Wu, Zhenyu <wuzh...@ustc.edu>
Date: Fri May 29 18:25:25 2026 +0000

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 <wuzh...@ustc.edu>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index a75d31bb5..c6fbd07d3 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 e2350871b..3e6a538a8 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -996,7 +996,7 @@ def s:GetFilenameChecks(): dict<list<string>>
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 23d96b9e4..f77ed07b9 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,
/**/
Reply all
Reply to author
Forward
0 new messages