Open jmigual opened 1 year ago
This is probably going to be a tough one to fix.
Its this is happening because of the screwed up template pattern.
The "T> class MyDerivedClass : public MyClass<T
is swallowed by the <>
of the first template.
C++ thought it'd be great to allow less-than and greater-than operators inside of template angle brackets, and it turns out thats a very hard thing to parse inside of recursive regular expressions. So this is kind of an artifact of that difficulty. The whole template matching pattern needs to be rewritten
Checklist
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
It looks like:
Default VS code theme (Dark+)
It should look like:
Line 4 has the keywords "class" and "public" in blue, the words "MyDerivedClass" and "MyClass" in green and the token "T" in green.
Related issues:
314