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/filetype.vim | |
parent | c07f11e42fc2eac5e750bf05aa3030f9b02a22ca (diff) |
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/filetype.vim')
-rw-r--r-- | runtime/filetype.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index dcef709eda..fd3998b299 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -632,7 +632,10 @@ au BufNewFile,BufRead auto.master setf conf au BufNewFile,BufRead *.mas,*.master setf master " Forth -au BufNewFile,BufRead *.fs,*.ft,*.fth setf forth +au BufNewFile,BufRead *.ft,*.fth setf forth + +" F# or Forth +au BufNewFile,BufRead *.fs call dist#ft#FTfs() " Reva Forth au BufNewFile,BufRead *.frt setf reva |