summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-05-02 10:49:45 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-05-02 10:49:45 +0200
commitc200e7a0c587f70611b8dd702d0c3b378676a39a (patch)
tree960c7c88f634854cf3488d6d18ce42344875f8ef /ftdetect
parent5529a5e8e21e4577e4cd3551f2cbad59b5b406e8 (diff)
downloadvim-polyglot-c200e7a0c587f70611b8dd702d0c3b378676a39a.tar.gz
vim-polyglot-c200e7a0c587f70611b8dd702d0c3b378676a39a.zip
Add crystal syntax, closes #118
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index da43539c..edb46195 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -60,6 +60,12 @@ au! BufRead,BufNewFile *.cyl set filetype=cryptol
au! BufRead,BufNewFile *.lcry set filetype=cryptol
au! BufRead,BufNewFile *.lcyl set filetype=cryptol
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'crystal') == -1
+
+autocmd BufNewFile,BufReadPost *.cr setlocal filetype=crystal
+autocmd BufNewFile,BufReadPost Projectfile setlocal filetype=crystal
+autocmd BufNewFile,BufReadPost *.ecr setlocal filetype=eruby
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -1
autocmd BufNewFile,BufReadPost *.feature,*.story set filetype=cucumber