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

Method shorthand syntax for object with double quotes #72

Open
rhysd opened this issue Oct 27, 2016 · 0 comments
Open

Method shorthand syntax for object with double quotes #72

rhysd opened this issue Oct 27, 2016 · 0 comments

Comments

@rhysd
Copy link

rhysd commented Oct 27, 2016

It seems that method shorthand syntax for object breaks highlights of its body.

2016-10-27 11 42 29

In this screenshot, if is highlighted as invalid.

Code:

const a = {
    "foo"() {
        if (true) {}
    }
};

Environment:

  • OS X 10.11
  • Vim 8.0-3
  • vim-javascript-syntax: 9e019fc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants