jq.vim (557B)
1 " Vim compiler file 2 " Language: jq 3 " Maintainer: Vito <vito.blog@gmail.com> 4 " Last Change: 2024 Apr 29 5 " 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring') 6 " 2024 Oct 04 by Konfekt (unset compiler) 7 " Upstream: https://github.com/vito-c/jq.vim 8 9 if exists('b:did_ftplugin') 10 finish 11 endif 12 let b:did_ftplugin = 1 13 14 setlocal include=^\\s*\\%(import\\\|include\\) 15 setlocal commentstring=#\ %s 16 17 let b:undo_ftplugin = 'setl commentstring< include<' 18 19 if !exists('current_compiler') 20 let b:undo_ftplugin ..= "| compiler make" 21 compiler jq 22 endif