Skip to content

Commit 6ec837c

Browse files
clasonvito-citchyny
authored andcommitted
vim-patch:dc5c90554145
runtime(jq): remove undefined var s:save_cpoptions and add include setting closes: vim/vim#14661 closes: vim/vim#14663 vim/vim@dc5c905 Co-authored-by: GodFather <[email protected]> Co-authored-by: itchyny <[email protected]>
1 parent e373277 commit 6ec837c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

runtime/ftplugin/jq.vim

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
" Vim compiler file
22
" Language: jq
33
" Maintainer: Vito <[email protected]>
4-
" Last Change: 2024 Apr 17
4+
" Last Change: 2024 Apr 29
55
" Upstream: https://github.com/vito-c/jq.vim
66

77
if exists('b:did_ftplugin')
88
finish
99
endif
1010
let b:did_ftplugin = 1
1111

12-
let b:undo_ftplugin = 'setl commentstring<'
13-
12+
setlocal include=^\\s*\\%(import\\\|include\\)
1413
setlocal commentstring=#%s
1514
compiler jq
1615

17-
let &cpoptions = s:save_cpoptions
18-
unlet s:save_cpoptions
16+
let b:undo_ftplugin = 'setl commentstring< include<'

0 commit comments

Comments
 (0)