better-cpp-syntax icon indicating copy to clipboard operation
better-cpp-syntax copied to clipboard

Regression with tokenization of `alignas()`

Open akbyrd opened this issue 2 years ago • 0 comments

Checklist

  • [x] 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 e3f51cca7683d2b2b086f889bff586bf9d85eb1f

It looks like:

image

It should look like:

image

akbyrd avatar Feb 23 '23 04:02 akbyrd