Skip to content

Syntax highlighting breaks with multi-line if statement and < symbol #4741

Open
@twisterniq

Description

Vue - Official extension or vue-tsc version

2.1.0

VSCode version

1.92.2

Vue version

3.4.38

TypeScript version

5.5.4

System Info

No response

Steps to reproduce

The problem occurs when writing an if statement with two conditions, the second condition is placed with the < symbol on a new line, and the closing parenthesis ) is on another new line. This causes the issue.

This issue does not occur with the > symbol.

What is expected?

Highlighting should be correct

image

What is actually happening?

It brokes the highligting

image

Link to minimal reproduction

Vue Playground

Any additional comments?

No response

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions