]> git.feebdaed.xyz Git - 0xmirror/vim.git/commitdiff
patch 9.1.2021: filetype: fluent files are not recognized
authorners <ners@gmx.ch>
Fri, 26 Dec 2025 15:27:19 +0000 (15:27 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 26 Dec 2025 15:27:19 +0000 (15:27 +0000)
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>
runtime/autoload/dist/ft.vim
src/testdir/test_filetype.vim
src/version.c

index 4aa5ce0542080e51797ce0e87b0b137e7c40989b..0ab087b0f59b2e35bc64f9df1c86e3a34f48fb86 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 22
+# Last Change:         2025 Dec 26
 # Former Maintainer:   Bram Moolenaar <Bram@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",
index ee6f6c9ec16944976cd7db1aacb0efc861c89bcb..b3e6fc171953d2f8aea0b08fef426ce53a9aa180 100644 (file)
@@ -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'],
index 82e85a94d44469d795e1112fd3b2825517c2d416..00146a0a5298a54bc64875a54d6474e0abef4814 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2021,
 /**/
     2020,
 /**/