]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2061: filetype: Koka files are not recognized v9.1.2061
authorHoang Nguyen <folliekazetani@protonmail.com>
Tue, 6 Jan 2026 14:56:00 +0000 (14:56 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 6 Jan 2026 14:56:00 +0000 (14:56 +0000)
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 <folliekazetani@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim
src/testdir/test_filetype.vim
src/version.c

index 7d30e86e55b0288a3f37fc47a39730aeafbc447b..0f28455b3257284f042403a7945464eeaa57a813 100644 (file)
@@ -2234,6 +2234,8 @@ const ft_from_ext = {
   "k": "kwt",
   # Kivy
   "kv": "kivy",
+  # Koka
+  "kk": "koka",
   # Kos
   "kos": "kos",
   # Kotlin
index 5d94769d841022f79001f4d70956d77772bb6e8b..6cbfbe2d13930992f9ba4072d59fd4351392a926 100644 (file)
@@ -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'],
index dd2b100a5897fb9fcab649840eaea9e2aa273e52..2432ba9fb5c73a4afcbaf26ffb8d6489987a1d12 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2061,
 /**/
     2060,
 /**/