Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting arrow function inside html tag wrong #334

Open
louwers opened this issue Dec 9, 2023 · 1 comment
Open

Syntax highlighting arrow function inside html tag wrong #334

louwers opened this issue Dec 9, 2023 · 1 comment

Comments

@louwers
Copy link

louwers commented Dec 9, 2023

Simplest reproduction:

html`${() => null}`
image

I expect the arrow => to have the same color.

@herberthobregon
Copy link

I think this is a misconception that is not used in a real project. Why would you want to declare a function that will never be executed in a template? Wouldn't it be better to declare the function outside of the HTML?

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

No branches or pull requests

2 participants