runtime(jq): remove undefined var s:save_cpoptions and add include setting
closes: #14661 closes: #14663 Co-authored-by: itchyny <itchyny@cybozu.co.jp> Signed-off-by: GodFather <vito.blog@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
2e9b9e9a9e
commit
dc5c905541
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Language: jq
|
" Language: jq
|
||||||
" Maintainer: Vito <vito.blog@gmail.com>
|
" Maintainer: Vito <vito.blog@gmail.com>
|
||||||
" Last Change: 2024 Apr 17
|
" Last Change: 2024 Apr 29
|
||||||
" Upstream: https://github.com/vito-c/jq.vim
|
" Upstream: https://github.com/vito-c/jq.vim
|
||||||
|
|
||||||
if exists('b:did_ftplugin')
|
if exists('b:did_ftplugin')
|
||||||
@ -9,10 +9,8 @@ if exists('b:did_ftplugin')
|
|||||||
endif
|
endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
let b:undo_ftplugin = 'setl commentstring<'
|
setlocal include=^\\s*\\%(import\\\|include\\)
|
||||||
|
|
||||||
setlocal commentstring=#%s
|
setlocal commentstring=#%s
|
||||||
compiler jq
|
compiler jq
|
||||||
|
|
||||||
let &cpoptions = s:save_cpoptions
|
let b:undo_ftplugin = 'setl commentstring< include<'
|
||||||
unlet s:save_cpoptions
|
|
||||||
|
|||||||
Reference in New Issue
Block a user