runtime(jq): remove undefined var s:save_cpoptions and add include setting
Commit:
https://github.com/vim/vim/commit/dc5c9055414501c438883c3b09ba8a3a7f983029
Author: GodFather <[email protected]>
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 <[email protected]>
Signed-off-by: GodFather <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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 <[email protected]>
-" 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<'
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1s1VlQ-005DfV-0B%40256bit.org.