aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-04-29 23:44:14 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-04-30 00:10:02 +0200
commit672138245f7ed41bba516d50e9f8373b7e5036e2 (patch)
tree7b1a8e9bd6045bb3d9c60a1a7d1904161f1ead76 /runtime/ftplugin
parentf59db07cdc8f266c9d08f4c229326d471f2d62ac (diff)
downloadrneovim-672138245f7ed41bba516d50e9f8373b7e5036e2.tar.gz
rneovim-672138245f7ed41bba516d50e9f8373b7e5036e2.tar.bz2
rneovim-672138245f7ed41bba516d50e9f8373b7e5036e2.zip
vim-patch:dc5c90554145
runtime(jq): remove undefined var s:save_cpoptions and add include setting closes: vim/vim#14661 closes: vim/vim#14663 https://github.com/vim/vim/commit/dc5c9055414501c438883c3b09ba8a3a7f983029 Co-authored-by: GodFather <vito.blog@gmail.com> Co-authored-by: itchyny <itchyny@cybozu.co.jp>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/jq.vim8
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/ftplugin/jq.vim b/runtime/ftplugin/jq.vim
index 15cd400d34..88958e80dd 100644
--- a/runtime/ftplugin/jq.vim
+++ b/runtime/ftplugin/jq.vim
@@ -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<'