language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

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

Open twisterniq opened this issue 1 year ago • 0 comments

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

twisterniq avatar Aug 29 '24 06:08 twisterniq