better-cpp-syntax icon indicating copy to clipboard operation
better-cpp-syntax copied to clipboard

Incorrectly tagged default implementation keyword outside of type definition

Open j-cortial opened this issue 2 years ago • 0 comments

Checklist

  • [x] This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"

The code with a problem is:

struct A1 {
  virtual ~A1() = default;
};

struct A2 {
  virtual ~A2() = 0;
};

A2::~A2() = default;

It looks like:

The first default is correctly tagged as keyword.other.default.destructor.cpp. The second default is incorrectly tagged as keyword.control.default.cpp.

It should look like:

Both default should be tagged as keyword.other.default.destructor.cpp.

j-cortial avatar Dec 12 '22 20:12 j-cortial