patch 9.1.2034: filetype: Fennel fnml files are not recognized
Commit:
https://github.com/vim/vim/commit/9c87af5c3cf5dc483c64d54f2677c4906d0545fa
Author: Christian Brabandt <[email protected]>
Date: Wed Dec 31 09:54:14 2025 +0000
patch 9.1.2034: filetype: Fennel fnml files are not recognized
Problem: filetype: Fennel fnml files are not recognized
(Alexei Mozaidze)
Solution: Detect *.fnml files as fennel filetype
Reference:
- https://fennel-lang.org/changelog#160--2025-10-13
fixes: #19047
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index a81768bbd..c38671a3a 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 27
+# Last Change: 2025 Dec 31
# Former Maintainer: Bram Moolenaar <[email protected]>
# These functions are moved here from runtime/filetype.vim to make startup
@@ -1876,6 +1876,9 @@ const ft_from_ext = {
"elv": "elvish",
# Faust
"lib": "faust",
+ # Fennel
+ "fnl": "fennel",
+ "fnml": "fennel",
# Libreoffice config files
"xcu": "xml",
"xlb": "xml",
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index c375db3c5..11491dfc8 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2025 Nov 11
+" Last Change: 2025 Dec 31
" Former Maintainer: Bram Moolenaar <[email protected]>
" If the filetype can be detected from extension or file name(the final path
component),
@@ -435,7 +435,7 @@ au BufNewFile,BufRead *.app call
dist#ft#FTapp()
au BufNewFile,BufRead *esmtprc setf esmtprc
" Fennel
-au BufNewFile,BufRead *.fnl,{,.}fennelrc setf fennel
+au BufNewFile,BufRead {,.}fennelrc setf fennel
" Flatpak config
au BufNewFile,BufRead */flatpak/repo/config setf dosini
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index cdf854bdd..700ffe846 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -292,7 +292,7 @@ def s:GetFilenameChecks(): dict<list<string>>
falcon: ['file.fal'],
fan: ['file.fan', 'file.fwt'],
faust: ['file.dsp', 'file.lib'],
- fennel: ['file.fnl', '.fennelrc', 'fennelrc'],
+ fennel: ['file.fnl', '.fennelrc', 'fennelrc', 'file.fnml'],
fetchmail: ['.fetchmailrc'],
fga: ['file.fga'],
fgl: ['file.4gl', 'file.4gh', 'file.m4gl'],
diff --git a/src/version.c b/src/version.c
index 63ad85bc5..0dbd5795e 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 */
+/**/
+ 2034,
/**/
2033,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vaszt-006wNl-Ls%40256bit.org.