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

Regression with tokenization of `alignas()` #626

Open akbyrd opened 1 year ago

akbyrd commented 1 year ago

Checklist

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