jeff-hykin / better-cpp-syntax

💾 The source of VS Code's C++ syntax highlighting
GNU General Public License v3.0
154 stars 29 forks source link

thread_local not highlighted as keyword #561

Closed HighCommander4 closed 3 years ago

HighCommander4 commented 3 years ago

Checklist

The code with a problem is:

int main() {
  thread_local int x;
}

It looks like:

The thread_local keyword does not receive any textmate scope that would suggest it's a keyword or storage class specifier.

This has been a keyword in C++ since C++11

It should look like:

The closest analogy is probably static which receives the scope storage.modifier.specifier.static.cpp. So perhaps thread_local should get storage.modifier.specifier.thread_local.cpp.

jeff-hykin commented 3 years ago

should be working on version v1.15.8 👍 thanks again for the PR @HighCommander4

BTW the repo was overhauled so it should be a lot less of a mess to try and understand now