From 99d61877d6f411f33e0db578f04b333fb2110ddd Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 20 May 2022 00:45:51 -0700 Subject: [solid] more progress, no fragments, but still not right --- .../solid-dom-fixtures/textInterpolation/code.js | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 integration/bunjs-only-snippets/solid-dom-fixtures/textInterpolation/code.js (limited to 'integration/bunjs-only-snippets/solid-dom-fixtures/textInterpolation/code.js') diff --git a/integration/bunjs-only-snippets/solid-dom-fixtures/textInterpolation/code.js b/integration/bunjs-only-snippets/solid-dom-fixtures/textInterpolation/code.js new file mode 100644 index 000000000..21698ea89 --- /dev/null +++ b/integration/bunjs-only-snippets/solid-dom-fixtures/textInterpolation/code.js @@ -0,0 +1,72 @@ +const trailing = Hello ; +const leading = John; + +/* prettier-ignore */ +const extraSpaces = Hello John; + +const trailingExpr = Hello {name}; +const leadingExpr = {greeting} John; + +/* prettier-ignore */ +const multiExpr = {greeting} {name}; + +/* prettier-ignore */ +const multiExprSpaced = {greeting} {name} ; + +/* prettier-ignore */ +const multiExprTogether = {greeting}{name} ; + +/* prettier-ignore */ +const multiLine = + + Hello + + + +/* prettier-ignore */ +const multiLineTrailingSpace = + Hello + John + + +/* prettier-ignore */ +const multiLineNoTrailingSpace = + Hello + John + + +/* prettier-ignore */ +const escape = +  <Hi>  + + +/* prettier-ignore */ +const escape2 = +  <Hi>  + + +/* prettier-ignore */ +const escape3 = <> +  <Hi>  + + +const injection = Hi{""}; + +let value = "World"; +const evaluated = Hello {value + "!"}; + +let number = 4 + 5; +const evaluatedNonString = 4 + 5 = {number}; + +const newLineLiteral = ( +
+ {s} + {"\n"}d +
+); + +const trailingSpace =
{expr}
; + +const trailingSpaceComp = {expr}; + +const trailingSpaceFrag = <>{expr}; -- cgit v1.2.3