patch 9.1.0950: filetype: fennelrc files are not recognized Commit: https://github.com/vim/vim/commit/f173f4249fc785fb3e2b341bcfb0f21192cd4bf5 Author: Wu, Zhenyu <wuzhe...@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 <wuzhe...@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, /**/ -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1tOiEF-00A3Rb-SQ%40256bit.org.