Skip to content

parentheses break syntax highlighting in special occasion #661

Description

@SoraYama

TS and JS Grammar Extension version: 0.0.43

VSCode Version: 1.26.1

Code

// breaks when '{' start in a new line behind a '('
const foo = () => (
  {
    num: 1,
    foo: 'foo',
    bar: `bar`,
    //  '=' break all following highlighting
    baz: `baz=${123}`,
  }
);

class TestColor extends Foo {
  public init() {}
}

image

// all will be fine
const foo = () => ({
  num: 1,
  foo: 'foo',
  bar: `bar`,
  baz: `baz=${123}`,
});

class TestColor extends Foo {
  public init() {}
}

image

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions