Skip to content

Conversation

@serkodev
Copy link
Collaborator

@serkodev serkodev commented Dec 3, 2025

Fixed #4741

4741

About the issue

The < at the start of a line in <script> was mistaken for a JSX tag, breaking JS/TSX/JSX highlighting.

My fix

I added a rule to treat that leading < as a normal operator to prevent the tokenizer from entering JSX mode, keeping multiline comparisons highlighted correctly.

@johnsoncodehk johnsoncodehk merged commit 1ab9928 into vuejs:master Dec 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants