Skip to content

html as embedded expression messes with syntax highlighting #99

Description

@mfulton26

embedded expressions in template literals (template strings) works but if it contains "html" inside a nested template literal then syntax highlighting gets messed up (VSCode renders it as if it is an unterminated template literal so all remaining code in the file gets colored as a string)

source render result
const message = `${`htm`}`;

console.log(message);
image ✔️
const message = `${`html`}`;

console.log(message);
image ❌
const message = `${`html5`}`;

console.log(message);
image ✔️

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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