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

Wrong Token Scope for Typename #643

Closed rjabkov closed 4 months ago

rjabkov commented 1 year ago

both tested, no diff: "C_Cpp.enhancedColorization": "disabled" "C_Cpp.enhancedColorization": "ebabled"

Colors for "T" and "y/x" in the following code are same; moreover, there's the same token scope!

    template<typename T>
    struct RstrPnt
    {
        RstrPnt() = default;
        RstrPnt(T y_, T x_)    : y(y_), x(x_) {}
        T y = 0;
        T x = 0;
    };

choosing T

bug1

choosing y

bug2

my settings.json's fragment

settjson

jeff-hykin commented 4 months ago

not sure when this was fixed, but it looks fixed now!