lit-analyzer icon indicating copy to clipboard operation
lit-analyzer copied to clipboard

Syntax highlighting arrow function inside html tag wrong

Open louwers opened this issue 1 year ago • 1 comments

Simplest reproduction:

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

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

louwers avatar Dec 09 '23 01:12 louwers

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?

herberthobregon avatar Dec 12 '23 06:12 herberthobregon