Skip to content

Typescript wrong syntax highlighting with some generic function declarations #710

@DavideCanton

Description

@DavideCanton

TS and JS Grammar Extension version: 0.0.47 / latest

Syntax highlighting in vscode (latest) with all extensions disabled is wrong.

Screenshots

First case:
With line 2 uncommented:
image
With line 2 commented:
image
Without the <K extends....> part:
image
With a generic type:
image

The problem seems to be the "extends" keyword inside the generic type parameter declaration.

I tried also outside a class declaration:
Wrong coloring:
image
Correct coloring:
image

Results are the same: the "extends" keyword seem to break coloring.

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