Closed tamasfe closed 1 year ago
String templates require special care, currently they break formatting.
Right now only the first chunk is used during formatting, so `foo${1 + 2}` will end up as `foo which is obviously wrong.
`foo${1 + 2}`
`foo
Instead we should iterate over all chunks, and allow inconsistently breaking inside ${} as well.
${}
String templates require special care, currently they break formatting.
Right now only the first chunk is used during formatting, so
`foo${1 + 2}`
will end up as`foo
which is obviously wrong.Instead we should iterate over all chunks, and allow inconsistently breaking inside
${}
as well.