diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-12-20 19:56:22 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2024-12-21 11:30:52 +0100 |
commit | 0fea57bc7127f4e160c1d66cb3ec910c9ec409a6 (patch) | |
tree | 47508b39ab0b913fbbec752efdd3741c67866175 | |
parent | 725d3e25a32f68c30402e0dbd373a93a294ffed6 (diff) | |
download | rneovim-0fea57bc7127f4e160c1d66cb3ec910c9ec409a6.tar.gz rneovim-0fea57bc7127f4e160c1d66cb3ec910c9ec409a6.tar.bz2 rneovim-0fea57bc7127f4e160c1d66cb3ec910c9ec409a6.zip |
vim-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: vim/vim#16262
https://github.com/vim/vim/commit/f173f4249fc785fb3e2b341bcfb0f21192cd4bf5
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
-rw-r--r-- | runtime/lua/vim/filetype.lua | 2 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 83e82392de..e1751103c4 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -1544,6 +1544,8 @@ local filename = { ['filter-rules'] = 'elmfilt', ['exim.conf'] = 'exim', exports = 'exports', + fennelrc = 'fennel', + ['.fennelrc'] = 'fennel', ['.fetchmailrc'] = 'fetchmail', fvSchemes = detect.foam, fvSolution = detect.foam, diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index 18957da220..bc8c388983 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -273,7 +273,7 @@ func s:GetFilenameChecks() abort \ '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'], |