lit-analyzer
lit-analyzer copied to clipboard
Syntax highlighting arrow function inside html tag wrong
Simplest reproduction:
html`${() => null}`
I expect the arrow => to have the same color.
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?