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

Token is not highlighted in a template #650

Open Darkness2k19 opened 1 year ago

Darkness2k19 commented 1 year ago

The code with a problem is:

const std::string sc(1, 'a');
static_assert(!std::is_assignable_v<decltype(*sc.data()), char>);
char c;

char in third line is given for comparison.

It looks like:

Color theme: Dark Modern image

It should look like:

The char in the second line is not highlighted but the problem does not persist if the line is changed to is_assignable or even just a trailing :: is added: image image

System information:

OS: Ubuntu 22.04.3 LTS VSCode version: 1.84.2 Language server: clangd Better C++ Syntax: 1.17.2