vim-cpp
vim-cpp copied to clipboard
c or cpp syntax files
``` #include int main() { // Different Colorings bewteen 'E' and 'e' double d1 = 19.3E10; double d2 = 19.3e10; double d3 = 19E10; double d4 = 19e10; return 0;...
I have testcases that need JSON as input. Instead of making a file for each one, I inline the JSON as a raw string. It takes up too much screen...
fixes #43
Allow the duration to be highlighted as the numbers. ``` auto time {1.5ms}; if (time < 100ms){ time += .0E1ms; time -= 0X2Ah; } ``` See this link for more...
I have for the time being implemented this in my own local copy (in ~/.vim/syntax). I am not an expert at vim syntax files, so I have one minor problem...
C++ identifiers with special meaning (final, override, import and module). are incorrectly highlighted out-of-context. These keywords should be considered as regular identifiers when used out of their special meaning context...
This code is valid C++11, but the braces are shown in red as invalid syntax ``` c++ std::map m; m[{1, 2}] = 3; ```
https://github.com/vim/vim/issues/1005 
In some C/C++ sources it is customary to indent lines containing directives like so: ```C++ #ifdef POSIX /* A comment. */ # ifdef LINUX # define FOO(a, b) \ #...
- 関連:https://twitter.com/Linda_pp/status/444140782639804416 Twitter でそういう話がでていたので立てておきます。 #### [目的] 以下のように C++11 で追加された**ユーザ定義リテラル**もリテラルとして一緒に ハイライトを行いたい。 ``` cpp // _user_defined_literal をリテラルとしてハイライトしたい 1234_user_defined_literal "homu"_user_defined_literal ``` Vim のシンタックスはあまり詳しくないのですが、とりあえず、既存のシンタックスの末尾に `\w*` を追加してみました。 ``` vim syn match cNumber display contained "\d\+\(\w*\)\>"...