From 24f0581a96e682ef108c5b417b26563f4df022f5 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 25 Apr 2020 22:12:56 +0200 Subject: Add rego support, closes #471 --- ftdetect/polyglot.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ftdetect') 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 -- cgit v1.2.3