neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 8e80e544784e1226f744e1b03faa0aeab0d5b681
parent f4f60f6a193f9c715fe5ff7574c8c42d17ad04f5
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Wed, 31 Dec 2025 18:39:50 +0800

vim-patch:9.1.2034: filetype: Fennel fnml files are not recognized (#37176)

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: vim/vim#19047

https://github.com/vim/vim/commit/9c87af5c3cf5dc483c64d54f2677c4906d0545fa

Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat:
Mruntime/lua/vim/filetype.lua | 1+
Mtest/old/testdir/test_filetype.vim | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua @@ -472,6 +472,7 @@ local extension = { fwt = 'fan', lib = 'faust', fnl = 'fennel', + fnml = 'fennel', fga = 'fga', m4gl = 'fgl', ['4gl'] = 'fgl', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim @@ -292,7 +292,7 @@ func s:GetFilenameChecks() abort \ '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'],