I’m working on a color scheme and finding it difficult to colorize some javascript stuff. I need help creating scope selectors in the javascript.tmLanguage file for objects, variables and properties. I’m terrible with regex, any help would be appreciated.
Examples:
Variable scope selector that will capture variable_name in this scenario.
var variable_name = 'foo';
Object scope selector that will capture person in these scenarios.
Property scope selector that will capture name in these scenarios.
var person = {
name: 'bob',
};
person.name = 'bob';