On 9/5/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
Paul van Erk wrote:
> More info; I found this in my .(g)vimrc :
>
> set matchpairs+=?::,=:;
>
> so that's: PLUS EQUALS QUESTION_MARK COLON COLON COMMA EQUALS COLON SEMICOLON

It's supposed to treat ? and : on the one hand, and = and ; on the other
hand, as "paired brackets". However, the matchparen plugin uses a rather
elementary algorithm to split 'matchpairs' into individual items: any
colons and commas are regarded as delimiters, and then odd "parts" are
treated as "left brackets", even ones as "right brackets".

Maybe the plugin shall be fixed to treat \: and \, as potential parens
in &matchpairs, but unescaped ':' and ',' as separators.

It is thinkable that ',' be used as paren, also, in some language or text.

Yakov

Reply via email to