Skip to content

Syntax Highlighting and Templated Classes #2590

Closed
@KeithBallard

Description

@KeithBallard

Type: LanguageService

The syntax highlighter does not seem to pick up on types declared by the typename keyword. For example, the code:

template<typename Node>
class Face;

template<typename Node>
class Edge;

template<typename Node>
class Cell
{
public:
typedef Face<Node> FaceType;
typedef Edge<Node> EdgeType;
};

produces this highlighting:
image

The syntax highlighter should be highlighting Node within the templates as a type. If there is a setting I am missing, please advise, but I think this might be a bug within the Language Service.

Describe the bug

  • OS and Version: Windows 10
  • VS Code Version: 1.27.2
  • C/C++ Extension Version: 0.19.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions