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

Missing highlight of template params and requires in lambda expressions with an explicit template parameter list #667

Open EienMiku opened 5 days ago

EienMiku commented 5 days ago

Checklist

The code with a problem is:

auto f = []<typename t>
    requires std::is_same_v<t, int>
{};
auto g = []<class t>
    requires std::is_same_v<t, int>
{};
auto h = []<int t>
    requires true
{};

👆Lambda expressions with an explicit template parameter list (always generic) (since C++20)

It looks like:

The theme is Default Dark Modern. image

It should look like:

lambda