better-cpp-syntax
better-cpp-syntax copied to clipboard
Incorrectly tagged default implementation keyword outside of type definition
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.