From 2ae1aab49bac10c19dc2fe4fae483240f29f5bca Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 2 May 2016 11:35:06 +0200 Subject: Add purescript support, closes #110 --- ftdetect/polyglot.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index afe8ce44..799b7c64 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -383,6 +383,11 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'puppet') == -1 au! BufRead,BufNewFile *.pp setfiletype puppet au! BufRead,BufNewFile Puppetfile setfiletype ruby endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'purescript') == -1 + +au BufNewFile,BufRead *.purs setf purescript +au FileType purescript let &l:commentstring='{--%s--}' +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'qml') == -1 autocmd BufRead,BufNewFile *.qml setfiletype qml -- cgit v1.2.3