diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 13:36:13 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-06-08 13:36:13 +0200 |
commit | fca45b2c2b9ed9d07f6d5014c8c3ef8f2f22c964 (patch) | |
tree | 70081d79b9b2eb1a37abf4f0b82ace3ffc76f49c /ftdetect | |
parent | ebf9ec9d62302ad95e677572562f5010eebd4e21 (diff) | |
download | vim-polyglot-fca45b2c2b9ed9d07f6d5014c8c3ef8f2f22c964.tar.gz vim-polyglot-fca45b2c2b9ed9d07f6d5014c8c3ef8f2f22c964.zip |
Add rego support, closes #406
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index f66f72c5..6e779c99 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1103,6 +1103,17 @@ au BufNewFile,BufRead .merlin set ft=merlin augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rego') == -1 + augroup filetypedetect + " rego, from rego.vim in tsandall/vim-rego +autocmd BufRead,BufNewFile *.rego set filetype=rego + +" Use # as a comment prefix +setlocal comments=b:#,fb:- +setlocal commentstring=#\ %s + 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 |