C++11 Syntax Support : A port of the existing C++ syntax to allow for C++11 features
script karma |
Rating 409/216,
Downloaded by 9821 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Michael Small |
|
script type |
syntax |
|
description |
Modified existing c.vim and cpp.vim (into cpp11.vim and cpp11_cbase.vim) to add support for new language features found in C++11.
* Initialiser lists and lambdas no longer cause curly error highlighting ({} allowed within parentheses).
* constexpr keyword added.
I'm adding features as I hit them - if something is bugging you and not yet added, let me know.
NOTE TO ALL:
===========
I've been working on a completely new syntax script from the ground up as extending these existing scripts is just too difficult as C++11
is a very different beast from the original C support that the scripts were based on.
I expect to have a working release of the new script up here and on github just after the new year.
~ Mike (2011-12-15) |
|
install details |
Tar contains just the required .vim files, so un-tar them in (or copy to) your ~/.vim/syntax/ directory.
To make the syntax permanent, consider setting with an auto command in your vimrc:
au BufNewFile,BufRead *.cpp set syntax=cpp11 |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.188.171.53
|