Tuesday, November 23, 2010

C++0x lambda syntax

Hi all,

 

in c++0x it will be possible to use lambda functions.

 

So, for example, this:

 

[](int n) { return n+ 1; }

 

Will become valid c++.

 

Unfortunately it breaks current C++ highlighting.

After a line like the one above, all curly brackets will be highlighted by VIM as “unmatched”, making reading the code really hard.

 

Is there a quick way to fix that?

 

Thanks,

       Andy.

 

No comments:

Post a Comment