Home Download Buy Blog Forum Support

Syntax coloring javascript variables and objects

Syntax coloring javascript variables and objects

Postby t35h on Fri Jun 01, 2012 1:18 am

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.
Code: Select all
var variable_name = 'foo';


Object scope selector that will capture person in these scenarios.
Property scope selector that will capture name in these scenarios.
Code: Select all
var person = {
    name: 'bob',
};

person.name = 'bob';
t35h
 
Posts: 7
Joined: Mon Apr 09, 2012 8:11 pm

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 32 guests