summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-04-25 22:12:56 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-04-25 22:12:56 +0200
commit24f0581a96e682ef108c5b417b26563f4df022f5 (patch)
treefac5fc5450eecec5558e66d94192372eabcd4c18 /ftdetect
parent33c94846710579d685a6b3b55010051045ad108c (diff)
downloadvim-polyglot-24f0581a96e682ef108c5b417b26563f4df022f5.tar.gz
vim-polyglot-24f0581a96e682ef108c5b417b26563f4df022f5.zip
Add rego support, closes #471
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim11
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