From c200e7a0c587f70611b8dd702d0c3b378676a39a Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 2 May 2016 10:49:45 +0200 Subject: Add crystal syntax, closes #118 --- ftdetect/polyglot.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ftdetect') 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 -- cgit v1.2.3