I can still reproduce the wrong behavior of parens. Using vim7.0g. Best regards, Milan
On Sun Apr 30, 2006 at 01:57:28PM +0200, Bram Moolenaar wrote: > > Milan Berta wrote: > > > I was browsing some Vim-scripts and I found strange that a highlighting > > of matching parens fails on this line: > > > > > > let l:fg=substitute(l:bcdefg,".*\\C" . l:cde . ",\\([^,]\\),.*","\\1","") > > > > > > It fails when the cursor is on > > - the first, the second of '(' > > - the first '[' > > - the last ')' > > - everything else is OK. > > > > It works well when ':syn off', it fails when ':syn on'. ft=vim. > > > > I can reproduce the problem with this simple line alone in a file.vim or > > by changing the 'ft' and 'syn' for a buffer. > > This problem was fixed a few days ago. Please try the current snapshot > or the next beta (should be later today).