patch 8.2.2392: fennel filetype not recognized
Problem: Fennel filetype not recognized.
Solution: Detect with pattern and hashbang. (Chinmay Dalal, closes #7729)
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index c9c9fdf..1e365ec 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -589,6 +589,9 @@
" Factor
au BufNewFile,BufRead *.factor setf factor
+" Fennel
+autocmd BufRead,BufNewFile *.fnl setf fennel
+
" Fetchmail RC file
au BufNewFile,BufRead .fetchmailrc setf fetchmail
diff --git a/runtime/scripts.vim b/runtime/scripts.vim
index 9217b44..6448c54 100644
--- a/runtime/scripts.vim
+++ b/runtime/scripts.vim
@@ -186,6 +186,10 @@
elseif s:name =~# 'instantfpc\>'
set ft=pascal
+ " Fennel
+ elseif s:name =~# 'fennel\>'
+ set ft=fennel
+
endif
unlet s:name