]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0950: filetype: fennelrc files are not recognized v9.1.0950
authorWu, Zhenyu <wuzhenyu@ustc.edu>
Fri, 20 Dec 2024 18:45:06 +0000 (19:45 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 20 Dec 2024 18:45:06 +0000 (19:45 +0100)
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>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 413eb6eb9affaa12b0e89df68f31babcc200ec81..d962e0f548cb32a7fe5087a8a869a470d4aa9689 100644 (file)
@@ -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
index 8f7254fd37e048fcc3504d4266934b37ca9ffa57..c650867d6feaf0a3a4c678dcedc5db31a9e1b3e5 100644 (file)
@@ -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'],
index 762919e6bb97b20a3716524ce6ae25bfb89b2f44..82eb6ea8e35e8580d6077367b5302bec945c13fc 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    950,
 /**/
     949,
 /**/