Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Braces inside square brackets shown as error #16

Open
bmerry opened this issue Nov 18, 2013 · 3 comments
Open

Braces inside square brackets shown as error #16

bmerry opened this issue Nov 18, 2013 · 3 comments

Comments

@bmerry
Copy link

bmerry commented Nov 18, 2013

This code is valid C++11, but the braces are shown in red as invalid syntax

std::map<std::pair<int, int>, int> m;
m[{1, 2}] = 3;
@octol
Copy link

octol commented Sep 19, 2015

A workaround is to set let c_no_curly_error=1.

@motherindia00
Copy link

where should i add this !?

@refaelsh
Copy link

refaelsh commented Feb 4, 2021

@rayhansec In your .vimrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants