Milan Berta wrote: > I can still reproduce the wrong behavior of parens. Using vim7.0g.
[....] > > > 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. This is weird. With C syntax highlighting it works fine, with Vim syntax highlighting it doesn't work properly. The highlighting is very similar though. I don't see an obvious difference that causes the paren matching to fail... It apparently happens because the [ and ] don't have the same highlighting. One is vimEscapeBrace and the other vimString. Thus it's a problem in the Vim syntax. Almost any change makes it work, even deleting the comma in [^,]. -- CRONE: Who sent you? ARTHUR: The Knights Who Say GNU! CRONE: Aaaagh! (she looks around in rear) No! We have no licenses here. "Monty Python and the Holy editor wars" PYTHON (MONTY) SOFTWARE LTD /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///