Skip to content

Commit b91b306

Browse files
nerschrisbra
authored andcommitted
patch 9.1.2021: filetype: fluent files are not recognized
Problem: filetype: fluent files are not recognized Solution: Detect *.ftl files as fluent filetype (ners) References: - https://projectfluent.org/ closes: #19011 Signed-off-by: ners <ners@gmx.ch> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent c721b69 commit b91b306

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 22
6+
# Last Change: 2025 Dec 26
77
# Former Maintainer: Bram Moolenaar <Bram@vim.org>
88

99
# These functions are moved here from runtime/filetype.vim to make startup
@@ -1976,6 +1976,8 @@ const ft_from_ext = {
19761976
"fish": "fish",
19771977
# Flix
19781978
"flix": "flix",
1979+
# Fluent
1980+
"ftl": "fluent",
19791981
# Focus Executable
19801982
"fex": "focexec",
19811983
"focexec": "focexec",

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ def s:GetFilenameChecks(): dict<list<string>>
298298
firrtl: ['file.fir'],
299299
fish: ['file.fish'],
300300
flix: ['file.flix'],
301+
fluent: ['file.ftl'],
301302
focexec: ['file.fex', 'file.focexec'],
302303
form: ['file.frm'],
303304
forth: ['file.ft', 'file.fth', 'file.4th'],

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+
2021,
737739
/**/
738740
2020,
739741
/**/

0 commit comments

Comments
 (0)