aboutsummaryrefslogtreecommitdiff
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2021-11-27 18:39:34 +0100
committerChristian Clason <c.clason@uni-graz.at>2021-11-27 19:21:57 +0100
commitea5699399ed641aaf45cfbf845861595d2c38d37 (patch)
treec1d1c1b805441fc4fdd46f4b679d7738da1157ba /runtime/filetype.vim
parentb339cb5aca331673018e176fe2fb01c00f0496b9 (diff)
downloadrneovim-ea5699399ed641aaf45cfbf845861595d2c38d37.tar.gz
rneovim-ea5699399ed641aaf45cfbf845861595d2c38d37.tar.bz2
rneovim-ea5699399ed641aaf45cfbf845861595d2c38d37.zip
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) https://github.com/vim/vim/commit/3d14c0f2b964195d08b34bb43f89ec5f99255194
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 4bd75d496e..0cad37531d 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -628,7 +628,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