Commit: patch 9.1.2008: filetype: hylo files are not recognized

0 views
Skip to first unread message

Christian Brabandt

unread,
1:31 PM (8 hours ago) 1:31 PM
to vim...@googlegroups.com
patch 9.1.2008: filetype: hylo files are not recognized

Commit: https://github.com/vim/vim/commit/9c9982240afca5c5efe6f235f2157a5e5165170c
Author: Ambrus Tóth <pi...@ambrus.dev>
Date: Mon Dec 22 18:26:52 2025 +0000

patch 9.1.2008: filetype: hylo files are not recognized

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 <pi...@ambrus.dev>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index c6f05d09e..4aa5ce054 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 14
+# Last Change: 2025 Dec 22
# Former Maintainer: Bram Moolenaar <Br...@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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 6392f6996..03682688c 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -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'],
diff --git a/src/version.c b/src/version.c
index ce81ba547..39b4a15ad 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 */
+/**/
+ 2008,
/**/
2007,
/**/
Reply all
Reply to author
Forward
0 new messages