Groups
Groups
Sign in
Groups
Groups
vim_dev
Conversations
About
Send feedback
Help
Commit: runtime(jq): remove undefined var s:save_cpoptions and add include setting
3 views
Skip to first unread message
Christian Brabandt
unread,
Apr 29, 2024, 2:30:14 PM
4/29/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
runtime(jq): remove undefined var s:save_cpoptions and add include setting
Commit:
https://github.com/vim/vim/commit/dc5c9055414501c438883c3b09ba8a3a7f983029
Author: GodFather <
vito...@gmail.com
>
Date: Mon Apr 29 20:16:29 2024 +0200
runtime(jq): remove undefined var s:save_cpoptions and add include setting
closes:
https://github.com/vim/vim/issues/14661
closes:
https://github.com/vim/vim/issues/14663
Co-authored-by: itchyny <
itc...@cybozu.co.jp
>
Signed-off-by: GodFather <
vito...@gmail.com
>
Signed-off-by: Christian Brabandt <
c...@256bit.org
>
diff --git a/runtime/ftplugin/jq.vim b/runtime/ftplugin/jq.vim
index 15cd400d3..88958e80d 100644
--- a/runtime/ftplugin/jq.vim
+++ b/runtime/ftplugin/jq.vim
@@ -1,7 +1,7 @@
" Vim compiler file
" Language: jq
" Maintainer: Vito <
vito...@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<'
Reply all
Reply to author
Forward
0 new messages