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 highlighting of parameters, user-defined classes and STL classes (e.g. std::string) does not work properly in WSL #473

Closed alisherzhaken closed 4 years ago

alisherzhaken commented 4 years ago

Checklist

The code with a problem is:

#include <iostream>

struct Person {
    std::string name;
    Person() = default;
    Person(const char* name) :
        name{name} 
        {}
    ~Person() = default;
};

int main() {
    Person p {"John"};
    std::string str {"Hello"};
    std::cout << p.name << '\n';
    std::cout << str << '\n'; 
}

It looks like:

WSL: Untitled (2)

It should look like:

Windows: Untitled (3)

matter123 commented 4 years ago

Hi, this is an issue with the C/C++ Extension's Enhanced Colorization. Please file this issue at https://github.com/microsoft/vscode-cpptools