From f7302d92629d29eb970c3d5fbb2f76ae6d6cf50a Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 18 Aug 2020 23:25:22 +0200 Subject: Add jq syntax, closes #502 --- ftdetect/polyglot.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 5909463b..24b77afb 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1155,6 +1155,11 @@ if index(g:polyglot_disabled, 'mcfunction') == -1 au BufNewFile,BufRead *.mcfunction set ft=mcfunction endif +if index(g:polyglot_disabled, 'jq') == -1 + au BufNewFile,BufRead *.jq set ft=jq + au BufNewFile,BufRead {.,}jqrc set ft=jq +endif + " restore Vi compatibility settings let &cpo = s:cpo_save unlet s:cpo_save \ No newline at end of file -- cgit v1.2.3