1
0
forked from aniani/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: #16262

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Wu, Zhenyu 2024-12-20 19:45:06 +01:00 committed by Christian Brabandt
parent 2328a39a54
commit f173f4249f
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
3 changed files with 4 additions and 2 deletions

View File

@ -844,7 +844,7 @@ au BufNewFile,BufRead *.fan,*.fwt setf fan
au BufNewFile,BufRead *.factor setf factor au BufNewFile,BufRead *.factor setf factor
" Fennel " Fennel
autocmd BufRead,BufNewFile *.fnl setf fennel autocmd BufRead,BufNewFile *.fnl,{,.}fennelrc setf fennel
" Fetchmail RC file " Fetchmail RC file
au BufNewFile,BufRead .fetchmailrc setf fetchmail au BufNewFile,BufRead .fetchmailrc setf fetchmail

View File

@ -273,7 +273,7 @@ def s:GetFilenameChecks(): dict<list<string>>
falcon: ['file.fal'], falcon: ['file.fal'],
fan: ['file.fan', 'file.fwt'], fan: ['file.fan', 'file.fwt'],
faust: ['file.dsp', 'file.lib'], faust: ['file.dsp', 'file.lib'],
fennel: ['file.fnl'], fennel: ['file.fnl', '.fennelrc', 'fennelrc'],
fetchmail: ['.fetchmailrc'], fetchmail: ['.fetchmailrc'],
fgl: ['file.4gl', 'file.4gh', 'file.m4gl'], fgl: ['file.4gl', 'file.4gh', 'file.m4gl'],
firrtl: ['file.fir'], firrtl: ['file.fir'],

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
950,
/**/ /**/
949, 949,
/**/ /**/