I'm experiencing a case of bad coloring when using a 'using declaration' inside a namespace to introduce a type from another namespace, but only if that other namespace was included from a header.
// test.h
namespace Foo
{
typedef int mytype;
};
// test.cpp
#include "test.h"
namespace Bar
{
using Foo::mytype; // #1
mytype func(); // #2
}
At #2, 'mytype' is shown in darkblue coloring on my machine, which is the same color as for functions. For #1, the coloring differs. In the small testcase above 'mytype' here appears in normal type coloring, but in the actual project where I encountered the bug it colors as a method as well.
The funny thing is, if I move the using declaration (at #1) to global namespace scope, coloring is correct. Also, when defining the namespace Foo in the same file (but keeping the using declaration in the Bar namespace), coloring is correct as well.
Also, this only applies to types. When using a using declaration for variables, coloring is correct as well.