From 402115f1c2b4d0704a822206f2e6e931e721c129 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 22 Jan 2021 20:55:04 +0100 Subject: patch 8.2.2392: fennel filetype not recognized Problem: Fennel filetype not recognized. Solution: Detect with pattern and hashbang. (Chinmay Dalal, closes #7729) --- runtime/filetype.vim | 3 +++ runtime/scripts.vim | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'runtime') diff --git a/runtime/filetype.vim b/runtime/filetype.vim index c9c9fdf715..1e365ec081 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -589,6 +589,9 @@ au BufNewFile,BufRead *.fan,*.fwt setf fan " 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 9217b4416a..6448c542cb 100644 --- a/runtime/scripts.vim +++ b/runtime/scripts.vim @@ -186,6 +186,10 @@ if s:line1 =~# "^#!" elseif s:name =~# 'instantfpc\>' set ft=pascal + " Fennel + elseif s:name =~# 'fennel\>' + set ft=fennel + endif unlet s:name -- cgit v1.2.3