From: GodFather Date: Mon, 29 Apr 2024 18:16:29 +0000 (+0200) Subject: runtime(jq): remove undefined var s:save_cpoptions and add include setting X-Git-Tag: v9.1.0381~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc5c9055414501c438883c3b09ba8a3a7f983029;p=thirdparty%2Fvim.git runtime(jq): remove undefined var s:save_cpoptions and add include setting closes: #14661 closes: #14663 Co-authored-by: itchyny Signed-off-by: GodFather Signed-off-by: Christian Brabandt --- 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 -" 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<'