Commit: patch 9.1.2021: filetype: fluent files are not recognized

1 view
Skip to first unread message

Christian Brabandt

unread,
Dec 26, 2025, 10:31:00 AM (yesterday) Dec 26
to vim...@googlegroups.com
patch 9.1.2021: filetype: fluent files are not recognized

Commit: https://github.com/vim/vim/commit/b91b30643af00947e4b0f8758b3e44bb9927faee
Author: ners <ne...@gmx.ch>
Date: Fri Dec 26 15:27:19 2025 +0000

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 <ne...@gmx.ch>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 4aa5ce054..0ab087b0f 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 22
+# Last Change: 2025 Dec 26
# Former Maintainer: Bram Moolenaar <Br...@vim.org>

# These functions are moved here from runtime/filetype.vim to make startup
@@ -1976,6 +1976,8 @@ const ft_from_ext = {
"fish": "fish",
# Flix
"flix": "flix",
+ # Fluent
+ "ftl": "fluent",
# Focus Executable
"fex": "focexec",
"focexec": "focexec",
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index ee6f6c9ec..b3e6fc171 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -298,6 +298,7 @@ def s:GetFilenameChecks(): dict<list<string>>
firrtl: ['file.fir'],
fish: ['file.fish'],
flix: ['file.flix'],
+ fluent: ['file.ftl'],
focexec: ['file.fex', 'file.focexec'],
form: ['file.frm'],
forth: ['file.ft', 'file.fth', 'file.4th'],
diff --git a/src/version.c b/src/version.c
index 82e85a94d..00146a0a5 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 */
+/**/
+ 2021,
/**/
2020,
/**/
Reply all
Reply to author
Forward
0 new messages