]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(jq): remove undefined var s:save_cpoptions and add include setting
authorGodFather <vito.blog@gmail.com>
Mon, 29 Apr 2024 18:16:29 +0000 (20:16 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 29 Apr 2024 18:18:26 +0000 (20:18 +0200)
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>
runtime/ftplugin/jq.vim

index 15cd400d3457a3e9ef19f43df79d7cf07df6fe67..88958e80ddff22c098f19b451ac93942033f63e3 100644 (file)
@@ -1,7 +1,7 @@
 " Vim compiler file
 " Language:    jq
 " Maintainer:  Vito <vito.blog@gmail.com>
-" Last Change: 2024 Apr 17
+" Last Change: 2024 Apr 29
 " Upstream: https://github.com/vito-c/jq.vim
 
 if exists('b:did_ftplugin')
@@ -9,10 +9,8 @@ if exists('b:did_ftplugin')
 endif
 let b:did_ftplugin = 1
 
-let b:undo_ftplugin = 'setl commentstring<'
-
+setlocal include=^\\s*\\%(import\\\|include\\)
 setlocal commentstring=#%s
 compiler jq
 
-let &cpoptions = s:save_cpoptions
-unlet s:save_cpoptions
+let b:undo_ftplugin = 'setl commentstring< include<'