blob: 307fbdb62dcd1195395d022115aeb906292cfa1b [file] [log] [blame]
Vito79952b92024-04-26 22:36:20 +02001" Vim compiler file
2" Language: jq
3" Maintainer: Vito <vito.blog@gmail.com>
GodFatherdc5c9052024-04-29 20:16:29 +02004" Last Change: 2024 Apr 29
Riley Bruins0a083062024-06-03 20:40:45 +02005" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
Konfekt7c3f9af2024-10-05 17:26:46 +02006" 2024 Oct 04 by Konfekt (unset compiler)
Vito79952b92024-04-26 22:36:20 +02007" Upstream: https://github.com/vito-c/jq.vim
8
9if exists('b:did_ftplugin')
10 finish
11endif
12let b:did_ftplugin = 1
13
GodFatherdc5c9052024-04-29 20:16:29 +020014setlocal include=^\\s*\\%(import\\\|include\\)
Riley Bruins0a083062024-06-03 20:40:45 +020015setlocal commentstring=#\ %s
Vito79952b92024-04-26 22:36:20 +020016
GodFatherdc5c9052024-04-29 20:16:29 +020017let b:undo_ftplugin = 'setl commentstring< include<'
Konfekt7c3f9af2024-10-05 17:26:46 +020018
19if !exists('current_compiler')
20 let b:undo_ftplugin ..= "| compiler make"
21 compiler jq
22endif
23