summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-05-02 11:35:06 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-05-02 11:35:06 +0200
commit2ae1aab49bac10c19dc2fe4fae483240f29f5bca (patch)
treee3d0814b234d593f044571967bacf01732ab877c /ftdetect
parent554ae93ef1728c1b031eb2a6f8013e74bc1a7786 (diff)
downloadvim-polyglot-2ae1aab49bac10c19dc2fe4fae483240f29f5bca.tar.gz
vim-polyglot-2ae1aab49bac10c19dc2fe4fae483240f29f5bca.zip
Add purescript support, closes #110
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim5
1 files changed, 5 insertions, 0 deletions
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