Skip to content

only work if es6-string-html is also installed? #1

@daKmoR

Description

@daKmoR

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

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