Skip to content

Commit

Permalink
vim-patch:dc5c90554145
Browse files Browse the repository at this point in the history
runtime(jq): remove undefined var s:save_cpoptions and add include setting

closes: vim/vim#14661
closes: vim/vim#14663

vim/vim@dc5c905

Co-authored-by: GodFather <vito.blog@gmail.com>
Co-authored-by: itchyny <itchyny@cybozu.co.jp>
  • Loading branch information
3 people committed Apr 29, 2024
1 parent 41ceadd commit f995de8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions runtime/ftplugin/jq.vim
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
" 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')
finish
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<'

0 comments on commit f995de8

Please sign in to comment.