runem / lit-analyzer

Monorepository for tools that analyze lit-html templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax highlighting arrow function inside html tag wrong

louwers opened this issue · comments

Simplest reproduction:

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

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?