2024-04-27 01:31:09 -07:00
|
|
|
" Vim compiler file
|
|
|
|
" Language: jq
|
|
|
|
" Maintainer: Vito <vito.blog@gmail.com>
|
2024-04-29 14:44:14 -07:00
|
|
|
" Last Change: 2024 Apr 29
|
2024-06-04 00:39:28 -07:00
|
|
|
" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
|
2024-10-05 08:41:54 -07:00
|
|
|
" 2024 Oct 04 by Konfekt (unset compiler)
|
2024-04-27 01:31:09 -07:00
|
|
|
" Upstream: https://github.com/vito-c/jq.vim
|
|
|
|
|
|
|
|
if exists('b:did_ftplugin')
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
|
2024-04-29 14:44:14 -07:00
|
|
|
setlocal include=^\\s*\\%(import\\\|include\\)
|
2024-06-04 00:39:28 -07:00
|
|
|
setlocal commentstring=#\ %s
|
2024-04-27 01:31:09 -07:00
|
|
|
|
2024-04-29 14:44:14 -07:00
|
|
|
let b:undo_ftplugin = 'setl commentstring< include<'
|
2024-10-05 08:41:54 -07:00
|
|
|
|
|
|
|
if !exists('current_compiler')
|
|
|
|
let b:undo_ftplugin ..= "| compiler make"
|
|
|
|
compiler jq
|
|
|
|
endif
|
|
|
|
|