diff options
author | GodFather <vito.blog@gmail.com> | 2024-04-29 20:16:29 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-29 20:18:26 +0200 |
commit | dc5c9055414501c438883c3b09ba8a3a7f983029 (patch) | |
tree | d71d1317ee6b4d13c30947867588ddc40b04418f | |
parent | 2e9b9e9a9ebf3fd40437260ecd6b1e23b02c636b (diff) |
runtime(jq): remove undefined var s:save_cpoptions and add include setting
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>
-rw-r--r-- | runtime/ftplugin/jq.vim | 8 |
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<' |