Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html as embedded expression messes with syntax highlighting #99

Open
mfulton26 opened this issue Aug 3, 2022 · 0 comments
Open

html as embedded expression messes with syntax highlighting #99

mfulton26 opened this issue Aug 3, 2022 · 0 comments

Comments

@mfulton26
Copy link

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 ✔️
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant