c.tmbundle icon indicating copy to clipboard operation
c.tmbundle copied to clipboard

[C++] Syntax highligting issue: initialisation lists

Open DanielJamesCollier opened this issue 8 years ago • 0 comments

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;
};

I believe that github uses this repository for its syntax highlighter. Looking above, both pieces of code are the same but show different highlighting. test2 is the broken highlighted version

DanielJamesCollier avatar Feb 05 '17 18:02 DanielJamesCollier