Comments (6)
đ
from vim-cpp.
I want some example that can make sure broken indentation...
from vim-cpp.
Its actually not lambdas alone, its lambdas as passed to functions:
#include <functional>
#include <cstdlib>
void foo(std::function<bool(int)> f) {
f(rand());
}
int main(int argc, char * argv[]) {
int i = 0;
//indenting looks fine
auto f = [&i](int input) -> bool {
if (input) {
i = 12;
return true;
}
return false;
};
f(rand());
//really terrible indenting
foo([&i](int input) -> bool {
if (input) {
i = 12;
return true;
}
return false;
});
std::vector<int> v({2,3,4});
//really terrible indenting
for_each(v.begin(), v.end(), [](int x) {
if (x == 2)
cout << "2";
else {
cout << "not two" << endl;
}
});
return 0;
}
from vim-cpp.
đ
from vim-cpp.
This repository doesn't contains indent/cpp.vim. So please report it to vim-dev.
from vim-cpp.
Oops, it was reported to vim-dev.
https://groups.google.com/d/topic/vim_dev/Hr_vGp_-JxM/discussion
https://groups.google.com/d/topic/vim_dev/IAnQft51UEY/discussion
from vim-cpp.
Related Issues (20)
- send patch 2014/05/14 HOT 3
- C++1y binary literals and digit separator HOT 2
- send patch 2014/05/23 HOT 14
- ăȘăăžăăȘćă cpp-vim ăă vim-cpp ă«ăăïŒ HOT 4
- Add g:cpp_no_cpp14 HOT 2
- Autoindenting still happens in raw string literals HOT 2
- C ăź #define æ㧠0 ăçŸăăăšăă€ă©ă€ăăćŁăă HOT 7
- nullptr_t
- [TODO]separate cppType and cppTypeEx
- Should not highlight "restrict" keyword HOT 1
- Wrong C++ highlighting HOT 14
- C++ syntax highlighting misses certain include directives.
- Cursor jumping after calling ccomplete#Complete() HOT 1
- Wrong coloring in `hi Float` HOT 1
- C++ syntax highlighting misses include directives with space after the octothorpe. HOT 1
- Raw string literals highlighting is broken HOT 5
- Highlight C++11+ attribute specifications HOT 2
- Incorrect highlighting for C++ special identifiers
- [syntax/cpp.vim] Different scientific notation coloring between 'E' and 'e'
- Incorrect highlighting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â€ïž Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-cpp.