Commit: patch 9.1.0950: filetype: fennelrc files are not recognized

7 views
Skip to first unread message

Christian Brabandt

unread,
Dec 20, 2024, 2:00:12 PM12/20/24
to vim...@googlegroups.com
patch 9.1.0950: filetype: fennelrc files are not recognized

Commit: https://github.com/vim/vim/commit/f173f4249fc785fb3e2b341bcfb0f21192cd4bf5
Author: Wu, Zhenyu <wuzh...@ustc.edu>
Date: Fri Dec 20 19:45:06 2024 +0100

patch 9.1.0950: filetype: fennelrc files are not recognized

Problem: filetype: fennelrc files are not recognized
Solution: detect 'fennelrc' files as fennel filetype
(Wu Zhenyu)

References:
https://github.com/bakpakin/Fennel/issues/193

closes: #16262

Signed-off-by: Wu, Zhenyu <wuzh...@ustc.edu>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 413eb6eb9..d962e0f54 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -844,7 +844,7 @@ au BufNewFile,BufRead *.fan,*.fwt setf fan
au BufNewFile,BufRead *.factor setf factor

" Fennel
-autocmd BufRead,BufNewFile *.fnl setf fennel
+autocmd BufRead,BufNewFile *.fnl,{,.}fennelrc setf fennel

" Fetchmail RC file
au BufNewFile,BufRead .fetchmailrc setf fetchmail
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 8f7254fd3..c650867d6 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -273,7 +273,7 @@ def s:GetFilenameChecks(): dict<list<string>>
falcon: ['file.fal'],
fan: ['file.fan', 'file.fwt'],
faust: ['file.dsp', 'file.lib'],
- fennel: ['file.fnl'],
+ fennel: ['file.fnl', '.fennelrc', 'fennelrc'],
fetchmail: ['.fetchmailrc'],
fgl: ['file.4gl', 'file.4gh', 'file.m4gl'],
firrtl: ['file.fir'],
diff --git a/src/version.c b/src/version.c
index 762919e6b..82eb6ea8e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 950,
/**/
949,
/**/
Reply all
Reply to author
Forward
0 new messages