Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token is not highlighted in a template #650

Open
Darkness2k19 opened this issue Nov 20, 2023 · 0 comments
Open

Token is not highlighted in a template #650

Darkness2k19 opened this issue Nov 20, 2023 · 0 comments

Comments

@Darkness2k19
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant