Add reason support, closes #266

This commit is contained in:
Adam Stankiewicz
2019-03-04 10:09:33 +01:00
parent ec5884b1d0
commit 0cd0b7f894
7 changed files with 510 additions and 1 deletions

View File

@@ -906,6 +906,17 @@ au BufRead,BufNewFile *.raml set ft=raml
augroup end
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'reason') == -1
augroup filetypedetect
" reason, from reason.vim in reasonml-editor/vim-reason-plus
" Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
au BufRead,BufNewFile *.re set filetype=reason
au BufRead,BufNewFile *.rei set filetype=reason
au BufNewFile,BufRead .merlin set ft=merlin
augroup end
endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
augroup filetypedetect
" ruby, from ruby.vim in vim-ruby/vim-ruby