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

Regression with tokenization of alignas() #626

Open
1 task done
akbyrd opened this issue Feb 23, 2023 · 0 comments
Open
1 task done

Regression with tokenization of alignas() #626

akbyrd opened this issue Feb 23, 2023 · 0 comments

Comments

@akbyrd
Copy link

akbyrd commented Feb 23, 2023

Checklist

  • This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"

The code with a problem is:

struct alignas(8) Foo {};

alignas is being tokenized to include the parentheses. Other functionlike keywords do not include the parentheses. It looks like this bug was fixed a long time ago but has regressed. vscode is using 1.17.3 from commit e3f51cc

It looks like:

image

It should look like:

image

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