--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/multiparser-html/lit-html.js --- # Input ```js import { LitElement, html } from '@polymer/lit-element'; class MyElement extends LitElement { static get properties() { return { mood: { type: String } }; } constructor() { super(); this.mood = 'happy'; } render() { return html` Web Components are ${ this.mood }! `; } } customElements.define('my-element', MyElement); const someHtml1 = html`
${bar}
`)} `; } const trickyParens = html``; const nestedFun = /* HTML */ `${outerExpr( 1 )} `; const closingScriptTagShouldBeEscapedProperly = /* HTML */ ` `; const closingScriptTag2 = /* HTML */ ``; -const nestedFun = /* HTML */ `${outerExpr(1)} - `; +const trickyParens = html``; +const nestedFun = /* HTML */ `${outerExpr( + 1, +)} `; const closingScriptTagShouldBeEscapedProperly = /* HTML */ ` `; -const closingScriptTag2 = /* HTML */ ``; +const closingScriptTag2 = /* HTML */ ``; const nestedFun = /* HTML */ `${outerExpr( 1, )} `; const closingScriptTagShouldBeEscapedProperly = /* HTML */ ` `; const closingScriptTag2 = /* HTML */ `