vim-jp/vim-cpp

Braces inside square brackets shown as error

bmerry opened this issue · 3 comments

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 commented

A workaround is to set let c_no_curly_error=1.

where should i add this !?

@rayhansec In your .vimrc.