mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:d49ba7b: runtime(sh): set b:match_skip to ignore matches for matchit (#32812)
related: vim/vim#16801
closes: chrisbra/matchit#50
closes: vim/vim#16834
d49ba7b92a
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
" Eisuke Kawashima
|
" Eisuke Kawashima
|
||||||
" Last Change: 2024 Sep 19 by Vim Project (compiler shellcheck)
|
" Last Change: 2024 Sep 19 by Vim Project (compiler shellcheck)
|
||||||
" 2024 Dec 29 by Vim Project (improve setting shellcheck compiler)
|
" 2024 Dec 29 by Vim Project (improve setting shellcheck compiler)
|
||||||
|
" 2025 Mar 09 by Vim Project (set b:match_skip)
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@@ -30,7 +31,8 @@ if exists("loaded_matchit") && !exists("b:match_words")
|
|||||||
\ s:sol .. '\%(for\|while\)\>:' .. s:sol .. 'done\>,' ..
|
\ s:sol .. '\%(for\|while\)\>:' .. s:sol .. 'done\>,' ..
|
||||||
\ s:sol .. 'case\>:' .. s:sol .. 'esac\>'
|
\ s:sol .. 'case\>:' .. s:sol .. 'esac\>'
|
||||||
unlet s:sol
|
unlet s:sol
|
||||||
let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words"
|
let b:match_skip = "synIDattr(synID(line('.'),col('.'),0),'name') =~ 'shSnglCase'"
|
||||||
|
let b:undo_ftplugin ..= " | unlet! b:match_ignorecase b:match_words b:match_skip"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||||
|
Reference in New Issue
Block a user