mjbvz / vscode-lit-html

Adds syntax highlighting for html inside of JavaScript and TypeScript tagged template strings
https://marketplace.visualstudio.com/items?itemName=bierner.lit-html
MIT License
318 stars 75 forks source link

Expecting property value when using multi-line template literal #58

Open FergoTheGreat opened 5 years ago

FergoTheGreat commented 5 years ago

It seems that including an expression within a style attribute does not work if you have multiple nested templates.

image

mjbvz commented 5 years ago

Please share the text of the code along with screenshots

FergoTheGreat commented 5 years ago
return html`
    <style>
        :host {
            display: block;
        }
    </style>
    <ul>${array.map((item, i) => html`<li style="color: ${colors[i%3]}">${item}</li>`)}</ul>
`