Skip to content

(typescript) <string[]> breaks highlighting #4301

@frankdekker

Description

@frankdekker

Describe the issue
The type cast <string[]> (or any array [] notation) in typescript breaks the highlighting and nothing after this point will be highlighted. Seems to be focused on variable assignment. Other places like property types of string[] work fine.

Which language seems to have the issue?
typescript

Are you using highlight or highlightAuto?
highlight

Sample Code to Reproduce

const myVar = <string[]>this.service.invoke();

See https://jsfiddle.net/Lom83wne/

Expected behavior
The highlighting shouldn't break after the array [] notation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions