Skip to content

Highlighting expands beyond template string #67

Open
@kurtextrem

Description

@kurtextrem

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?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions