diff options
author | Christian Clason <c.clason@uni-graz.at> | 2021-11-28 11:57:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-28 11:57:07 +0100 |
commit | e4976cbd26dc6f7f7b8444d2b107e3ed2b97f25e (patch) | |
tree | 4e6d490ff94ae0189753ec3d8f372f5b6daed6de /runtime/autoload | |
parent | 1840c82b428e3bf425435309eafe24c4d56f248b (diff) | |
parent | ea5699399ed641aaf45cfbf845861595d2c38d37 (diff) | |
download | rneovim-e4976cbd26dc6f7f7b8444d2b107e3ed2b97f25e.tar.gz rneovim-e4976cbd26dc6f7f7b8444d2b107e3ed2b97f25e.tar.bz2 rneovim-e4976cbd26dc6f7f7b8444d2b107e3ed2b97f25e.zip |
Merge pull request #16452 from clason/vim-8.2.3685
vim-patch:8.2.{3451,3458,3452,3685,3686}: some filetypes are not recognized correctly
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/dist/ft.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 344889249b..0cbcb1bbb5 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -219,6 +219,23 @@ func dist#ft#FTe() endif endfunc +" Distinguish between Forth and F#. +" Provided by Doug Kearns. +func dist#ft#FTfs() + if exists("g:filetype_fs") + exe "setf " . g:filetype_fs + else + let line = getline(nextnonblank(1)) + " comments and colon definitions + if line =~ '^\s*\.\=( ' || line =~ '^\s*\\G\= ' || line =~ '^\\$' + \ || line =~ '^\s*: \S' + setf forth + else + setf fs + endif + endif +endfunc + " Distinguish between HTML, XHTML and Django func dist#ft#FThtml() let n = 1 |