|
Karsten Hopp |
aacafc |
To: vim-dev@vim.org
|
|
Karsten Hopp |
aacafc |
Subject: Patch 7.0.046
|
|
Karsten Hopp |
aacafc |
Fcc: outbox
|
|
Karsten Hopp |
aacafc |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
aacafc |
Mime-Version: 1.0
|
|
Karsten Hopp |
aacafc |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
aacafc |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
aacafc |
------------
|
|
Karsten Hopp |
aacafc |
|
|
Karsten Hopp |
aacafc |
Patch 7.0.046
|
|
Karsten Hopp |
aacafc |
Problem: The matchparen plugin ignores parens in strings, but not in single
|
|
Karsten Hopp |
aacafc |
quotes, often marked with "character".
|
|
Karsten Hopp |
aacafc |
Solution: Also ignore parens in syntax items matching "character".
|
|
Karsten Hopp |
aacafc |
Files: runtime/plugin/matchparen.vim
|
|
Karsten Hopp |
aacafc |
|
|
Karsten Hopp |
aacafc |
|
|
Karsten Hopp |
aacafc |
*** ../vim-7.0.045/runtime/plugin/matchparen.vim Sat May 13 14:52:02 2006
|
|
Karsten Hopp |
aacafc |
--- runtime/plugin/matchparen.vim Mon Jun 26 10:53:35 2006
|
|
Karsten Hopp |
aacafc |
***************
|
|
Karsten Hopp |
aacafc |
*** 1,6 ****
|
|
Karsten Hopp |
aacafc |
" Vim plugin for showing matching parens
|
|
Karsten Hopp |
aacafc |
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
Karsten Hopp |
aacafc |
! " Last Change: 2006 May 11
|
|
Karsten Hopp |
aacafc |
|
|
Karsten Hopp |
aacafc |
" Exit quickly when:
|
|
Karsten Hopp |
aacafc |
" - this plugin was already loaded (or disabled)
|
|
Karsten Hopp |
aacafc |
--- 1,6 ----
|
|
Karsten Hopp |
aacafc |
" Vim plugin for showing matching parens
|
|
Karsten Hopp |
aacafc |
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
Karsten Hopp |
aacafc |
! " Last Change: 2006 Jun 26
|
|
Karsten Hopp |
aacafc |
|
|
Karsten Hopp |
aacafc |
" Exit quickly when:
|
|
Karsten Hopp |
aacafc |
" - this plugin was already loaded (or disabled)
|
|
Karsten Hopp |
aacafc |
***************
|
|
Karsten Hopp |
aacafc |
*** 96,102 ****
|
|
Karsten Hopp |
aacafc |
|
|
Karsten Hopp |
aacafc |
" When not in a string or comment ignore matches inside them.
|
|
Karsten Hopp |
aacafc |
let s_skip ='synIDattr(synID(line("."), col("."), 0), "name") ' .
|
|
Karsten Hopp |
aacafc |
! \ '=~? "string\\|comment"'
|
|
Karsten Hopp |
aacafc |
execute 'if' s_skip '| let s_skip = 0 | endif'
|
|
Karsten Hopp |
aacafc |
|
|
Karsten Hopp |
aacafc |
let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, stopline)
|
|
Karsten Hopp |
aacafc |
--- 96,102 ----
|
|
Karsten Hopp |
aacafc |
|
|
Karsten Hopp |
aacafc |
" When not in a string or comment ignore matches inside them.
|
|
Karsten Hopp |
aacafc |
let s_skip ='synIDattr(synID(line("."), col("."), 0), "name") ' .
|
|
Karsten Hopp |
aacafc |
! \ '=~? "string\\|character\\|singlequote\\|comment"'
|
|
Karsten Hopp |
aacafc |
execute 'if' s_skip '| let s_skip = 0 | endif'
|
|
Karsten Hopp |
aacafc |
|
|
Karsten Hopp |
aacafc |
let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, stopline)
|
|
Karsten Hopp |
aacafc |
*** ../vim-7.0.045/src/version.c Tue Aug 8 17:06:21 2006
|
|
Karsten Hopp |
aacafc |
--- src/version.c Tue Aug 8 18:07:37 2006
|
|
Karsten Hopp |
aacafc |
***************
|
|
Karsten Hopp |
aacafc |
*** 668,669 ****
|
|
Karsten Hopp |
aacafc |
--- 668,671 ----
|
|
Karsten Hopp |
aacafc |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
aacafc |
+ /**/
|
|
Karsten Hopp |
aacafc |
+ 46,
|
|
Karsten Hopp |
aacafc |
/**/
|
|
Karsten Hopp |
aacafc |
|
|
Karsten Hopp |
aacafc |
--
|
|
Karsten Hopp |
aacafc |
I AM THANKFUL...
|
|
Karsten Hopp |
aacafc |
...for the taxes that I pay because it means that I am employed.
|
|
Karsten Hopp |
aacafc |
|
|
Karsten Hopp |
aacafc |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
aacafc |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
aacafc |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
aacafc |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|