Take this Scss example:
.foo {
content: "he#{'ll'}o";
position: abs#{'ol'}ute;
}
Right now it converts to a code that throws an error:
.foo
content: "he{"ll"}o"
position: abs{"ol"}ute
While we'd need to convert it into something like this:
.foo
content: "he" + 'll' +"o"
position: unquote('abs' + "ol" + 'ute')
- When the interpolation is inside the string, we need to convert it just into the string concatenation.
- When the interpolation is inside an ident, we need to convert it into an unquote with the string concatenation inside.
(there could be other cases with the interpolation I didn't cover there though)