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

Incorrect highlighting for C++ special identifiers

Open aladram opened this issue 4 years ago • 0 comments

C++ identifiers with special meaning (final, override, import and module). are incorrectly highlighted out-of-context. These keywords should be considered as regular identifiers when used out of their special meaning context (c.f. C++20 standard, section 5.10, paragraph 2).

Reproduction:

int final, override, import, module;

Actual: these variables names are incorrectly highlighted as keywords. Expected: no specific highlighting.

Refers to vim/vim#8745.

aladram avatar Aug 12 '21 15:08 aladram