Skip to content

Method shorthand syntax for object with double quotes #72

Open
@rhysd

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:

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

Environment:

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jelera@rhysd

        Issue actions

          Method shorthand syntax for object with double quotes · Issue #72 · jelera/vim-javascript-syntax