+1

$this as variable name wrongly highlighted

11684 6 years ago 0

Not a very big deal, but if I want to use '$this' as a variable name in JavaScript ST2 highlights the 'this' part as if the dollar sign is not there.


It is useful in scenarios like this (with jQuery):


var $this = $(this);


But if the this in '$this' is wrongly highlighted it looks like a reference to 'this', not to a variable called '$this'.