diff options
Diffstat (limited to 'runtime/plugin/matchparen.vim')
-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 d5a0ac5a9..3cc732bc4 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: 2008 Sep 03 +" Last Change: 2010 Nov 16 " Exit quickly when: " - this plugin was already loaded (or disabled) @@ -82,8 +82,9 @@ function! s:Highlight_Matching_Pair() endif " When not in a string or comment ignore matches inside them. + " We match "escape" for special items, such as listpEscapeSpecial. let s_skip ='synIDattr(synID(line("."), col("."), 0), "name") ' . - \ '=~? "string\\|character\\|singlequote\\|comment"' + \ '=~? "string\\|character\\|singlequote\\|escape\\|comment"' execute 'if' s_skip '| let s_skip = 0 | endif' " Limit the search to lines visible in the window. |