Skip to content

Method shorthand syntax for object with double quotes #72

Description

@rhysd

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:

consta={"foo"(){if(true){}}};

Environment:

  • OS X 10.11
  • Vim 8.0-3
  • vim-javascript-syntax: 9e019fc

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions