Skip to content

parentheses break syntax highlighting in special occasion #661

@SoraYama

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

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