jeff-hykin / better-cpp-syntax

💾 The source of VS Code's C++ syntax highlighting
GNU General Public License v3.0
155 stars 30 forks source link

Syntax missing for reference symbol '&' as parameters in Copy Constructor and other Constructors #509

Open trivial-zero opened 4 years ago

trivial-zero commented 4 years ago

Checklist

The code with a problem is:

void SomeClass::SomeFunction(const SomeClass& num)
{
    return;
}

SomeClass::SomeClass(SomeClass& a)
{
    return;
}

SomeClass::SomeClass(const SomeClass& num)
{
    this->num = num.num;
    cout << "Copy Constructor <=> " << num << endl;
}

It looks like:

screenshot + theme name preferable image Theme: Dark+ (Default Dark)

It should look like:

Where in the copy constructor and the constructor, the colour of the symbol '&' should match with other functions as a reference symbol