patch 9.2.0559: filetype: Kaitai struct files are not recogonized

Commit: 
https://github.com/vim/vim/commit/73e619d699574f1fc96ce2f04c1e243748c4d7dc
Author: Wu, Zhenyu <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1wT1yA-00D44Q-Ga%40256bit.org.

Raspunde prin e-mail lui