From 0cd0b7f8942a42bf8cb24affb18ac5bedae5aa48 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 4 Mar 2019 10:09:33 +0100 Subject: Add reason support, closes #266 --- ftdetect/polyglot.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ftdetect') 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 -- cgit v1.2.3