Skip to content

Incorrect highlighting for jsx element prefixed with comment #754

@mjbvz

Description

@mjbvz

From microsoft/vscode#76327

TS and JS Grammar Extension version: latest from master

Code

const b = <Element />;
const a = /**/ <Element />;

Bug
On the second line, <Element /> is not parsed as jsx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions