summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-03-04 10:09:33 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-03-04 10:09:33 +0100
commit0cd0b7f8942a42bf8cb24affb18ac5bedae5aa48 (patch)
tree06a44efce0966a50c2fdf55ba43e629ecbf2b800 /ftdetect
parentec5884b1d0e58dd4727530a4f7e8a30c21b713c1 (diff)
downloadvim-polyglot-0cd0b7f8942a42bf8cb24affb18ac5bedae5aa48.tar.gz
vim-polyglot-0cd0b7f8942a42bf8cb24affb18ac5bedae5aa48.zip
Add reason support, closes #266
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index ef4d4d03..b91c235f 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -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