Reputation:
As you can see below, in some instances it highlights green, in others it is white. Does it have to do with the difference between regular function expressions, and those which are immediately invoked?
I have noticed this effect with the majority of color themes available in Visual Studio Code.
Upvotes: 1
Views: 2107
Reputation: 944321
Identifiers with names which begin with capital letters are conventionally reserved for constructor functions / classes.
This is what you are using them for. Your syntax highlighter is distinguishing based on the type of value assigned to them.
Upvotes: 6