patch 9.1.2061: filetype: Koka files are not recognized
Commit:
https://github.com/vim/vim/commit/969a4a0ba5dc53a8745e9ece10df13f98572603b
Author: Hoang Nguyen <[email protected]>
Date: Tue Jan 6 14:56:00 2026 +0000
patch 9.1.2061: filetype: Koka files are not recognized
Problem: filetype: Koka files are not recognized
Solution: Detect *.kk files as koka filetype (Hoang Nguyen).
Reference:
- https://koka-lang.github.io/koka/doc/index.html
closes: #19104
Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 7d30e86e5..0f28455b3 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -2234,6 +2234,8 @@ const ft_from_ext = {
"k": "kwt",
# Kivy
"kv": "kivy",
+ # Koka
+ "kk": "koka",
# Kos
"kos": "kos",
# Kotlin
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 5d94769d8..6cbfbe2d1 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'],
+ koka: ['file.kk'],
kos: ['file.kos'],
kotlin: ['file.kt', 'file.ktm', 'file.kts'],
krl: ['file.sub', 'file.Sub', 'file.SUB'],
diff --git a/src/version.c b/src/version.c
index dd2b100a5..2432ba9fb 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 */
+/**/
+ 2061,
/**/
2060,
/**/
--
--
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/E1vd8XW-00H4lQ-UX%40256bit.org.