vim-patch:8.2.3686: filetype detection often mixes up Forth and F#

Problem:    Filetype detection often mixes up Forth and F#.
Solution:   Add a function to inspect the file contents. (Doug Kearns)
3d14c0f2b9
This commit is contained in:
Christian Clason
2021-11-27 18:39:34 +01:00
parent b339cb5aca
commit ea5699399e
6 changed files with 95 additions and 8 deletions

View File

@@ -198,6 +198,10 @@ if s:line1 =~# "^#!"
elseif s:name =~# 'fish\>'
set ft=fish
" Gforth
elseif s:name =~# 'gforth\>'
set ft=forth
endif
unlet s:name