better-cpp-syntax icon indicating copy to clipboard operation
better-cpp-syntax copied to clipboard

"using" in "using ::f" is colored like a scope instead of a using directive

Open sean-mcmanus opened this issue 6 years ago • 1 comments

Use code

void f();
namespace A {
    void g();
}
namespace X {
    using ::f;
    using A::g;
}

The "using ::f" has a scope of entity.name.scope-resolution.cpp instead of keyword.other.using.directive.

This is not a recent regression.

sean-mcmanus avatar Oct 04 '19 22:10 sean-mcmanus

We'll make sure to get this fixed when the scope resolution is refactored (its been needing it for awhile). Just heads up though, sadly it might be awhile before that happens.

jeff-hykin avatar Oct 15 '19 23:10 jeff-hykin