Sublime Forum

Self keyword is now not highlighted

#1

Hey, thanks you for 3.2 update!

“self” keyword is now not highlighted as used to be when editing JS (Monokai). In my code I use “const self = this” and further the code I can see “self” and visually dirfranciate it, but now it broke :frowning:

Please bring it back :cry:

0 Likes

#2


possibly you can get this back using https://packagecontrol.io/packages/JSCustom

0 Likes

#4

Package looks cool for other purposes too, thanks @kingkeith!

I tweaked JavaScript.sublime-syntax for now, just added self in certain place and now it works, but next update might brake it.

0 Likes

#5

Removing self highlighting was deliberate; self doesn’t have any special meaning in JavaScript, nor is it a standard convention (though it is common in jQuery UI code). Most of the time, highlighting self would be misleading.

I am hoping to circle back to some JS Custom improvements soon, and near the top of the list is custom identifier highlighting.

1 Like