Sublime Forum

jQuery full syntax coloring?

#1

Right now, with a code snippet like this:

$(this).parent().toggleClass('active', this.checked).siblings().removeClass('active');

the $, this, parent, and checked are colored:

*parent and checked are scoped as support.constant.js
*“this” is scoped as variable.language.js
*the $ is keyword.operator.js

how can I get scopes added for the jQuery methods, such as toggleClass, removeClass, siblings, etc.?

0 Likes