JavaScript `this` highlighting


#1

When using Atom for JavaScript, the this keyword gets the following LESS classes: .variable.language.js

When setting some property of an object to a function, e.g. foo.a = function(){}, foo gets the following LESS classes: .support.class.js
However, in this.a = function(){}, the this keyword gets the classes of foo, not of this. This means that the this keyword cannot be highlighted when setting a property to a function. It would be great for the this keyword to get all classes for both: .variable.language.support.class.js


#2

If you haven’t seen it yet, you probably want to take a look at the language-javascript repository and its Issues including: