]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2043: filetype: kos files are not reconized v9.1.2043
authorChris Dragan <chris@dragan.dev>
Fri, 2 Jan 2026 14:06:55 +0000 (14:06 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 2 Jan 2026 14:06:55 +0000 (14:06 +0000)
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 <chris@dragan.dev>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim
src/testdir/test_filetype.vim
src/version.c

index f9c19319b7d40ae96ef42e6f4161058977096fa6..66028d0b1a7a2bac0b0b3e6666e6323622f2b167 100644 (file)
@@ -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 <Bram@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",
index 26fb2479903369486a4836730322ffb96e07d47a..bebdefd83780dbd4543bc78512eb98ef21cfa787 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'],
+    kos: ['file.kos'],
     kotlin: ['file.kt', 'file.ktm', 'file.kts'],
     krl: ['file.sub', 'file.Sub', 'file.SUB'],
     kscript: ['file.ks'],
index e351729773d5a90a8970c02686f8835e4b0a9133..84a08d2bec5ddc28c05ecabb621bd0618d9a723e 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2043,
 /**/
     2042,
 /**/