diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-04-25 22:12:56 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-04-25 22:12:56 +0200 |
commit | 24f0581a96e682ef108c5b417b26563f4df022f5 (patch) | |
tree | fac5fc5450eecec5558e66d94192372eabcd4c18 /ftdetect | |
parent | 33c94846710579d685a6b3b55010051045ad108c (diff) | |
download | vim-polyglot-24f0581a96e682ef108c5b417b26563f4df022f5.tar.gz vim-polyglot-24f0581a96e682ef108c5b417b26563f4df022f5.zip |
Add rego support, closes #471
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 35b7485c..54d71378 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1221,6 +1221,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 |