octol / vim-cpp-enhanced-highlight

Additional Vim syntax highlighting for C++ (including C++11/14/17)
MIT License
1.06k stars 149 forks source link

Vector names highlighted as functions in case these are followed by (...) #97

Open YuryYury opened 1 year ago

YuryYury commented 1 year ago

When I declare a vector, allocating its initial size like

std::vector<int> myVector(5); // allocating 5 elements for this vector

, myVector gets highlighted incorrectly as if it is a function. When I declare a vector without allocating its initial size like

std::vector<int> anotherVector;

, anotherVector is not highlighted as I would expect.

A screenshot:

image

Is different highlighting for myVector and anotherVector expected?