diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-10 16:47:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-10 16:47:21 +0800 |
commit | fc95cfb3db7a02f2f9cacad547b9294733e2b640 (patch) | |
tree | 397257af3df6607706dbeb20659bfc900414fd46 | |
parent | 8e55a5315a90a03c8d505c44b767c61859fcc4d9 (diff) | |
download | rneovim-fc95cfb3db7a02f2f9cacad547b9294733e2b640.tar.gz rneovim-fc95cfb3db7a02f2f9cacad547b9294733e2b640.tar.bz2 rneovim-fc95cfb3db7a02f2f9cacad547b9294733e2b640.zip |
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
https://github.com/vim/vim/commit/d49ba7b92a14e6f3c1c413d396df72d36e934f78
Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r-- | runtime/ftplugin/sh.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/ftplugin/sh.vim b/runtime/ftplugin/sh.vim index 54ae73b675..0038ee7dd4 100644 --- a/runtime/ftplugin/sh.vim +++ b/runtime/ftplugin/sh.vim @@ -6,6 +6,7 @@ " Eisuke Kawashima " Last Change: 2024 Sep 19 by Vim Project (compiler shellcheck) " 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") finish @@ -30,7 +31,8 @@ if exists("loaded_matchit") && !exists("b:match_words") \ s:sol .. '\%(for\|while\)\>:' .. s:sol .. 'done\>,' .. \ s:sol .. 'case\>:' .. s:sol .. 'esac\>' 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 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") |