diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-27 17:22:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-27 17:22:07 +0000 |
commit | 3d14c0f2b964195d08b34bb43f89ec5f99255194 (patch) | |
tree | 163e4b2f4c8ec11c664d0a0bc92e41da1f87a2a8 /runtime/scripts.vim | |
parent | c07f11e42fc2eac5e750bf05aa3030f9b02a22ca (diff) | |
download | vim-git-3d14c0f2b964195d08b34bb43f89ec5f99255194.tar.gz |
patch 8.2.3686: filetype detection often mixes up Forth and F#v8.2.3686
Problem: Filetype detection often mixes up Forth and F#.
Solution: Add a function to inspect the file contents. (Doug Kearns)
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r-- | runtime/scripts.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim index 0ff8e4908..3790b1c10 100644 --- a/runtime/scripts.vim +++ b/runtime/scripts.vim @@ -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 |