c.tmbundle icon indicating copy to clipboard operation
c.tmbundle copied to clipboard

C++ final and override keywords are not correctly identified

Open aeschli opened this issue 10 years ago • 1 comments

From @rielz on December 27, 2015 16:58

The C++11 specifiers final and override are missing in the C++ syntax file. They are context specific keywords, so they must not always be classified as a keyword.

Ironically they are present in the C syntax file with some checks for the correct context. This check fails for some cases though. These three are currently missing in Code:

class deriv final : base {
    void meth1() final;
    void meth2() override;
}
  • final and override in class declarations
  • final classes ... GitHub seems to be missing that one too :smile:

Copied from original issue: Microsoft/vscode#1669

aeschli avatar Jan 08 '16 14:01 aeschli

For reference: http://en.cppreference.com/w/cpp/keyword

jhasse avatar Sep 15 '16 19:09 jhasse