jeff-hykin / better-cpp-syntax

💾 The source of VS Code's C++ syntax highlighting
GNU General Public License v3.0
155 stars 30 forks source link

Incorrectly tagged default implementation keyword outside of type definition #620

Open j-cortial opened 1 year ago

j-cortial commented 1 year ago

Checklist

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.