Friday, November 5, 2010

c++0x syntax support

I know that currently vim support for c++0x is in development.

But as far as I know, the support for c++0x lambda syntax is not planned, is that right?

 

Anyway, in c++0x this will be a valid construct:

 

int a;

[&a](int b)

{

  a = b;
}

 

Currently, as soon as vim sees that it goes totally crazy – it thinks that all braces and semilcolons after that are not matched.

And that makes the code after the lambda definition look totally unreadable (the highlighted un-matched braces).

 

In lieu of a full support for c++0x, is there a way to turn off the annoying highlighting of out-of-place braces?

 

Thanks,

   Andy.

No comments: