4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: The matchparen plugin ignores parens in strings, but not in single
12 quotes, often marked with "character".
13 Solution: Also ignore parens in syntax items matching "character".
14 Files: runtime/plugin/matchparen.vim
17 *** ../vim-7.0.045/runtime/plugin/matchparen.vim Sat May 13 14:52:02 2006
18 --- runtime/plugin/matchparen.vim Mon Jun 26 10:53:35 2006
21 " Vim plugin for showing matching parens
22 " Maintainer: Bram Moolenaar <Bram@vim.org>
23 ! " Last Change: 2006 May 11
26 " - this plugin was already loaded (or disabled)
28 " Vim plugin for showing matching parens
29 " Maintainer: Bram Moolenaar <Bram@vim.org>
30 ! " Last Change: 2006 Jun 26
33 " - this plugin was already loaded (or disabled)
37 " When not in a string or comment ignore matches inside them.
38 let s_skip ='synIDattr(synID(line("."), col("."), 0), "name") ' .
39 ! \ '=~? "string\\|comment"'
40 execute 'if' s_skip '| let s_skip = 0 | endif'
42 let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, stopline)
45 " When not in a string or comment ignore matches inside them.
46 let s_skip ='synIDattr(synID(line("."), col("."), 0), "name") ' .
47 ! \ '=~? "string\\|character\\|singlequote\\|comment"'
48 execute 'if' s_skip '| let s_skip = 0 | endif'
50 let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, stopline)
51 *** ../vim-7.0.045/src/version.c Tue Aug 8 17:06:21 2006
52 --- src/version.c Tue Aug 8 18:07:37 2006
56 { /* Add new patch number below this line */
63 ...for the taxes that I pay because it means that I am employed.
65 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
66 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
67 \\\ download, build and distribute -- http://www.A-A-P.org ///
68 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///