vim-cpp icon indicating copy to clipboard operation
vim-cpp copied to clipboard

Braces inside square brackets shown as error

Open bmerry opened this issue 12 years ago • 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;

bmerry avatar Nov 18 '13 11:11 bmerry

A workaround is to set let c_no_curly_error=1.

octol avatar Sep 19 '15 20:09 octol

where should i add this !?

motherindia00 avatar Sep 11 '20 15:09 motherindia00

@rayhansec In your .vimrc.

refaelsh avatar Feb 04 '21 19:02 refaelsh