commit | 3d14c0f2b964195d08b34bb43f89ec5f99255194 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Nov 27 17:22:07 2021 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Nov 27 17:22:07 2021 +0000 |
tree | 163e4b2f4c8ec11c664d0a0bc92e41da1f87a2a8 | |
parent | c07f11e42fc2eac5e750bf05aa3030f9b02a22ca [diff] [blame] |
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)
diff --git a/runtime/scripts.vim b/runtime/scripts.vim index 0ff8e49..3790b1c 100644 --- a/runtime/scripts.vim +++ b/runtime/scripts.vim
@@ -198,6 +198,10 @@ elseif s:name =~# 'fish\>' set ft=fish + " Gforth + elseif s:name =~# 'gforth\>' + set ft=forth + endif unlet s:name