sublime-cpp11 icon indicating copy to clipboard operation
sublime-cpp11 copied to clipboard

Inheritance

Open danielschemmel opened this issue 10 years ago • 1 comments

When inheriting from another class, the inheritance specification is not highlighted:

struct A : private B { private: void c(); };

Expected result: Both private specifiers are highlighted. Possibly B is highlighted the same as A, as it must be a class name.

Actual result: The first private is not highlighted (the second is) and B is not highlighted either.

danielschemmel avatar Aug 24 '15 11:08 danielschemmel

:+1:

The latter B should have the scope: entity.other.inherited-class. The entire section post the : should have a meta scope. The private should have the same scope as otherwise.

pradyunsg avatar Sep 01 '15 10:09 pradyunsg