diff options
author | Christian Clason <c.clason@uni-graz.at> | 2021-11-27 18:39:34 +0100 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2021-11-27 19:21:57 +0100 |
commit | ea5699399ed641aaf45cfbf845861595d2c38d37 (patch) | |
tree | c1d1c1b805441fc4fdd46f4b679d7738da1157ba /runtime/scripts.vim | |
parent | b339cb5aca331673018e176fe2fb01c00f0496b9 (diff) | |
download | rneovim-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/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 0ff8e49088..3790b1c10f 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 |