Open
Description
With the following snippet:
const js = String.raw
const bar = "bar"
const value = "foo"
function assertNever(arg){}
function foo() {
const value = js`const foo`
switch (bar) {
case "bar":
return js`if (!${value})`
default:
assertNever(bar)
}
}
It seems like the highlighting breaks - it appears like the highlighting now thinks the switch
is part of the template string. So maybe the syntax highlighting somehow expands beyond the original scope even though it should end at the end of the template string?

Metadata
Metadata
Assignees
Labels
No labels