Skip to content

Typescript syntax highlighting breaks under a set of conditions #389

Description

@khvorov45

Describe the bug

Example of wrong highlighting (bottom 3 lines)

Most subsequent code would be highlighted in yellow as if it was all a string.

The set of conditions required for this is (images contain (mostly) correct highlighting when the corresponding condition is removed):

3+ fields in an object argument
Generic use in the return type (highlight still questionable without it)
Template string use (highlight still questionable without it)
No commas in the types for the object fields (main issue?)

Version & OS

OS: Linux Mint 20
Desktop: 2.5.7-linux1

Files

Code in screenshots

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions