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

`requires` without `()` gets incorrectly highlighted #663

Closed EienMiku closed 5 days ago

EienMiku commented 1 week ago

Checklist

The code with a problem is:

template <class type>
    requires std::is_array_v<type>
void f();

It looks like:

image image requires is now recognized as a variable

It should look like:

未标题-1 requires should be highlighted same as template or other key words

EienMiku commented 5 days ago

Sorry for the issue. I can't reproduce it.