When an enum and class are declared in the same file if the class has method names that are the same as the Enum's members those class members are incorrectly colored with the "Enum Member" syntax color.
In the example code below the class methods Log.Error, Log.Warn and Log.Info are incorrectly colored with the "Enum Member" syntax color since they match the members of the enum LogLevel in the same file.
In the example image I've set the Enum Member syntax color to "Lime" to highlight the problem.
Example image:
https://i.imgur.com/x7vc7d8.png
Example code:
#pragma once
enum class LogLevel { Error = 0, Warn, Info };
class Log
{
private:
LogLevel m_LogLevel = LogLevel::Error;
void Write(const char* text);
void WriteLine(const char* text);
public:
void SetLevel(LogLevel LogLevel);
void Error(const char* message);
void Warn(const char* message);
void Info(const char* message);
};