Skip to content

Commit 9c99822

Browse files
tothambrus11chrisbra
authored andcommitted
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 <ping@ambrus.dev> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent b571034 commit 9c99822

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

runtime/autoload/dist/ft.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ vim9script
33
# Vim functions for file type detection
44
#
55
# Maintainer: The Vim Project <https://github.com/vim/vim>
6-
# Last Change: 2025 Dec 14
6+
# Last Change: 2025 Dec 22
77
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
88

99
# These functions are moved here from runtime/filetype.vim to make startup
@@ -2118,6 +2118,8 @@ const ft_from_ext = {
21182118
"tmpl": "template",
21192119
# Hurl
21202120
"hurl": "hurl",
2121+
# Hylo
2122+
"hylo": "hylo",
21212123
# Hyper Builder
21222124
"hb": "hb",
21232125
# Httest

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ def s:GetFilenameChecks(): dict<list<string>>
381381
http: ['file.http'],
382382
hurl: ['file.hurl'],
383383
hy: ['file.hy', '.hy-history'],
384+
hylo: ['file.hylo'],
384385
hyprlang: ['hyprlock.conf', 'hyprland.conf', 'hypridle.conf', 'hyprpaper.conf', '/hypr/foo.conf'],
385386
i3config: ['/home/user/.i3/config', '/home/user/.config/i3/config', '/etc/i3/config', '/etc/xdg/i3/config'],
386387
ibasic: ['file.iba', 'file.ibi'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
2008,
737739
/**/
738740
2007,
739741
/**/

0 commit comments

Comments
 (0)