Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight ES6 object method shorthand syntax #36

Closed
LPGhatguy opened this issue Jan 5, 2016 · 1 comment
Closed

Highlight ES6 object method shorthand syntax #36

LPGhatguy opened this issue Jan 5, 2016 · 1 comment

Comments

@LPGhatguy
Copy link

ES6 has a shorthand syntax for defining methods on objects similar to that of a class.

The method declaration in

let x = {
    hello() {
        let hello = "world";
    }
};

should have the same highlighting as

class X {
    hello() {
        let hello = "world";
    }
}

In the current TypeScript Sublime Text plugin, the method name in the first code sample is not highlighted:
screen shot 2016-01-05 at 2 44 43 pm

(as a side note, GitHub has the same highlighting issue at present; do they use this repository?)

@sheetalkamat
Copy link
Member

Fixed by #257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants