Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Syntax Highlighting Issue: init lists #203

@DanielJamesCollier

Description

@DanielJamesCollier

Initialisation list syntax highlighting is not working as seen in the below image, please see related issue.

Editor: VS Code
Version: 1.9.1

c33c95287a62481c032a4081bbc6bb86

the issue seems to be with the ordering of the commas: see below
55cfaf47ad3b59cfc6609d92e0e1d8af

both are syntactically the same hut have different highlighting.

test code:

struct test {

    test(int x, int d, std::string dave) :
        _x(x),
        _d(d),
        _dave(dave)
    {

    }

    int _x;
    int _d;
    std::string _dave;
};

struct test2 {

    test2(int x, int d, std::string dave) :
        _x(x)
    ,   _d(d)
    ,   _dave(dave)
    {

    }

    int _x;
    int _d;
    std::string _dave;
};

related issue
#198

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions