[x ] This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"
[ ] This bug exists for C
[x ] This bug exists for C++
[ ] This bug exists for Objective-C
[ ] This bug exists for Objective-C++
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.
Checklist
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
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 scopestorage.modifier.specifier.static.cpp
. So perhapsthread_local
should getstorage.modifier.specifier.thread_local.cpp
.