forked from 0x00000001A/es6-string-html
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
it definitely should work - if not - it's a bug... you have an example?
that get's highlighted fine for me
const foo = css`
div {
padding: ${size};
margin: 10px;
}
`;
const bar = html`
<div>
<p>hey there ${name}</p>
</div>
`;
Lars:
not for me, perhaps it's because I have both plugins installed?
I'll try it out
Ah, very interesting
If I install only es6-string-css then any CSS within one CSS block following a variable is not highlighted properly, so in your example margin: 10px would not get highlighted
Also, if the last css block in the template literal has a variable inside, then any highlighting of the regular JS (or html) code that comes after is broken
however, when I also install es6-string-html everything works fine
Metadata
Metadata
Assignees
Labels
No labels