Commit: patch 9.1.2043: filetype: kos files are not reconized

1 view
Skip to first unread message

Christian Brabandt

unread,
Jan 2, 2026, 9:16:07 AM (yesterday) Jan 2
to vim...@googlegroups.com
patch 9.1.2043: filetype: kos files are not reconized

Commit: https://github.com/vim/vim/commit/96a1caac6b39b523a32d0554cb95e92dbb81e17f
Author: Chris Dragan <ch...@dragan.dev>
Date: Fri Jan 2 14:06:55 2026 +0000

patch 9.1.2043: filetype: kos files are not reconized

Problem: filetype: kos files are not reconized
Solution: Detect *.kos files as kos filetype
(Chris Dragan)

Reference:
- https://github.com/kos-lang/kos

closes: #19056

Signed-off-by: Chris Dragan <ch...@dragan.dev>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index f9c19319b..66028d0b1 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -3,7 +3,7 @@ vim9script
# Vim functions for file type detection
#
# Maintainer: The Vim Project <https://github.com/vim/vim>
-# Last Change: 2025 Dec 31
+# Last Change: 2026 Jan 02
# Former Maintainer: Bram Moolenaar <Br...@vim.org>

# These functions are moved here from runtime/filetype.vim to make startup
@@ -2234,6 +2234,8 @@ const ft_from_ext = {
"k": "kwt",
# Kivy
"kv": "kivy",
+ # Kos
+ "kos": "kos",
# Kotlin
"kt": "kotlin",
"ktm": "kotlin",
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 26fb24799..bebdefd83 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -432,6 +432,7 @@ def s:GetFilenameChecks(): dict<list<string>>
kitty: ['kitty.conf', '~/.config/kitty/colorscheme.conf'],
kivy: ['file.kv'],
kix: ['file.kix'],
+ kos: ['file.kos'],
kotlin: ['file.kt', 'file.ktm', 'file.kts'],
krl: ['file.sub', 'file.Sub', 'file.SUB'],
kscript: ['file.ks'],
diff --git a/src/version.c b/src/version.c
index e35172977..84a08d2be 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2043,
/**/
2042,
/**/
Reply all
Reply to author
Forward
0 new messages