diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-02 11:52:52 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-02 12:03:34 -0400 |
commit | abb13dde980b21b39e9d700370e3e82835007cb6 (patch) | |
tree | 6922c9b0eec02bb4acff1ba57dc4b9dea7b71b9d /runtime/plugin | |
parent | b8f3ef10c943730df8d82f229bc8b1da3a3c8294 (diff) | |
download | rneovim-abb13dde980b21b39e9d700370e3e82835007cb6.tar.gz rneovim-abb13dde980b21b39e9d700370e3e82835007cb6.tar.bz2 rneovim-abb13dde980b21b39e9d700370e3e82835007cb6.zip |
vim-patch:130cbfc31235
Update runtime files
https://github.com/vim/vim/commit/130cbfc31235c6cb52ffe718ea0a5bb50fbbc9fd
Diffstat (limited to 'runtime/plugin')
-rw-r--r-- | runtime/plugin/matchparen.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/plugin/matchparen.vim b/runtime/plugin/matchparen.vim index 162430ecd0..0dad0ac0ea 100644 --- a/runtime/plugin/matchparen.vim +++ b/runtime/plugin/matchparen.vim @@ -1,6 +1,6 @@ " Vim plugin for showing matching parens " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2020 Jun 18 +" Last Change: 2021 Apr 07 " Exit quickly when: " - this plugin was already loaded (or disabled) @@ -107,9 +107,10 @@ func s:Highlight_Matching_Pair() " Build an expression that detects whether the current cursor position is " in certain syntax types (string, comment, etc.), for use as " searchpairpos()'s skip argument. - " We match "escape" for special items, such as lispEscapeSpecial. + " 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\\|comment"''))' + \ '''v:val =~? "string\\|character\\|singlequote\\|escape\\symbol\\|comment"''))' " 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 |