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

Syntax Highlighting Issue: init lists #203

Closed
DanielJamesCollier opened this issue Feb 5, 2017 · 1 comment · Fixed by #206
Closed

Syntax Highlighting Issue: init lists #203

DanielJamesCollier opened this issue Feb 5, 2017 · 1 comment · Fixed by #206
Labels

Comments

@DanielJamesCollier
Copy link

DanielJamesCollier commented Feb 5, 2017

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

@DanielJamesCollier
Copy link
Author

DanielJamesCollier commented Feb 5, 2017

also appears that github syntax highlighting is broken too! I have filed a bug report for the git syntax highlighter as seen here: textmate/c.tmbundle#49

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants