Permalink
Browse files

Patch 7.0.046

Problem:    The matchparen plugin ignores parens in strings, but not in single
           quotes, often marked with "character".
Solution:   Also ignore parens in syntax items matching "character".
Files:      runtime/plugin/matchparen.vim



git-svn-id: https://vim.svn.sourceforge.net/svnroot/vim/vim7@58 2a77ed30-b011-0410-a7ad-c7884a0aa172
  • Loading branch information...
1 parent 5cc7af4 commit a9396aa092c672cb27ce1ae5e6d0239666b20764 edyfox committed Aug 9, 2006
Showing with 4 additions and 2 deletions.
  1. +2 −2 runtime/plugin/matchparen.vim
  2. +2 −0 src/version.c
@@ -1,6 +1,6 @@
" Vim plugin for showing matching parens
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2006 May 11
+" Last Change: 2006 Jun 26
" Exit quickly when:
" - this plugin was already loaded (or disabled)
@@ -96,7 +96,7 @@ function! s:Highlight_Matching_Pair()
" When not in a string or comment ignore matches inside them.
let s_skip ='synIDattr(synID(line("."), col("."), 0), "name") ' .
- \ '=~? "string\\|comment"'
+ \ '=~? "string\\|character\\|singlequote\\|comment"'
execute 'if' s_skip '| let s_skip = 0 | endif'
let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, stopline)
View
@@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 46,
/**/
45,
/**/

0 comments on commit a9396aa

Please sign in to comment.