diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-02-28 09:34:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 09:34:27 +0100 |
commit | 66c384d4e806a5e8de53bc57a05f0ddd8c8a9d1c (patch) | |
tree | 0744198130c837d09161138c1a60f6a4a5c47335 /runtime/plugin | |
parent | 8acb3d742ce68adadf1def9e1d1bb5bfd671988c (diff) | |
download | rneovim-66c384d4e806a5e8de53bc57a05f0ddd8c8a9d1c.tar.gz rneovim-66c384d4e806a5e8de53bc57a05f0ddd8c8a9d1c.tar.bz2 rneovim-66c384d4e806a5e8de53bc57a05f0ddd8c8a9d1c.zip |
vim-patch:partial:dd60c365cd26 (#22437)
vim-patch:partial:dd60c365cd26
Update runtime files
https://github.com/vim/vim/commit/dd60c365cd2630794be84d63c4fe287124a30b97
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Skip: eval.txt, repeat.txt (needs `getscriptinfo()`)
Diffstat (limited to 'runtime/plugin')
-rw-r--r-- | runtime/plugin/matchparen.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim index 3982489b92..e19b283228 100644 --- a/runtime/plugin/matchparen.vim +++ b/runtime/plugin/matchparen.vim @@ -108,8 +108,9 @@ func s:Highlight_Matching_Pair() " searchpairpos()'s skip argument. " We match "escape" for special items, such as lispEscapeSpecial, and " match "symbol" for lispBarSymbol. - let s_skip = '!empty(filter(map(synstack(line("."), col(".")), ''synIDattr(v:val, "name")''), ' . - \ '''v:val =~? "string\\|character\\|singlequote\\|escape\\|symbol\\|comment"''))' + let s_skip = 'synstack(".", col("."))' + \ . '->indexof({_, id -> synIDattr(id, "name") =~? ' + \ . '"string\\|character\\|singlequote\\|escape\\|symbol\\|comment"}) >= 0' " If executing the expression determines that the cursor is currently in " one of the syntax types, then we want searchpairpos() to find the pair " within those syntax types (i.e., not skip). Otherwise, the cursor is |