]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.2008: filetype: hylo files are not recognized v9.1.2008
authorAmbrus Tóth <ping@ambrus.dev>
Mon, 22 Dec 2025 18:26:52 +0000 (18:26 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 22 Dec 2025 18:26:52 +0000 (18:26 +0000)
Problem:  filetype: hylo files are not recognized
Solution: Detect *.hylo files as hylo filetype (Ambrus Tóth)

References:
- https://hylo-lang.org/

closes: #18994

Signed-off-by: Ambrus Tóth <ping@ambrus.dev>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim
src/testdir/test_filetype.vim
src/version.c

index c6f05d09e98579c00266dad2f3eee070ab254e06..4aa5ce0542080e51797ce0e87b0b137e7c40989b 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 14
+# Last Change:         2025 Dec 22
 # Former Maintainer:   Bram Moolenaar <Bram@vim.org>
 
 # These functions are moved here from runtime/filetype.vim to make startup
@@ -2118,6 +2118,8 @@ const ft_from_ext = {
   "tmpl": "template",
   # Hurl
   "hurl": "hurl",
+  # Hylo
+  "hylo": "hylo",
   # Hyper Builder
   "hb": "hb",
   # Httest
index 6392f6996eb59e3505198f2c3d2df4753443a47c..03682688c03bf59b2401b213ee95cac7b30d707a 100644 (file)
@@ -381,6 +381,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     http: ['file.http'],
     hurl: ['file.hurl'],
     hy: ['file.hy', '.hy-history'],
+    hylo: ['file.hylo'],
     hyprlang: ['hyprlock.conf', 'hyprland.conf', 'hypridle.conf', 'hyprpaper.conf', '/hypr/foo.conf'],
     i3config: ['/home/user/.i3/config', '/home/user/.config/i3/config', '/etc/i3/config', '/etc/xdg/i3/config'],
     ibasic: ['file.iba', 'file.ibi'],
index ce81ba547c5c64022cac22fb861c7ee04f823ab1..39b4a15ad1aa31f01102e2f46dfbce059482e9e1 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2008,
 /**/
     2007,
 /**/