Skip to content

Syntax highlight fails for line inheriting from templated class and not finishing with "{" #629

@jmigual

Description

@jmigual

Checklist

  • This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"

The code with a problem is:

// With templates
template <typename T> class MyClass {
};
template <typename T> class MyDerivedClass : public MyClass<T> 
{
};
template <typename T> class MyDerivedClass2 : public MyClass<T> {
};

// Without templates
class NonTemplate {
};
template <typename t> class MyDerivedClass3 : public NonTemplate 
{
};
template <typename t> class MyDerivedClass4 : public NonTemplate {
};

It looks like:

code

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions