0x00000001A / es6-string-html

Highlight code in ES6 multiline strings
https://marketplace.visualstudio.com/items?itemName=Tobermory.es6-string-html
MIT License
127 stars 77 forks source link

`/* css */` breaks all syntax highlighting after it #51

Open sxxov opened 1 year ago

sxxov commented 1 year ago

Without /* css */:

image

With /* css */:

image

This seems to be a problem with both this repo & bashmish/es6-string-css as well, as found from my testing & https://github.com/bashmish/es6-string-css/issues/6.

kevcam4891 commented 1 year ago

Same here, when using css template literals from styled-components. I need to disable this extension for now. Coloring after css is messed up for the remainder of the document.

export const baseInputStyle = css`
   font-family: inherit;
`

image

johnhult commented 1 year ago

I've also ran into this issue when using css from styled components. If I instead use import * as Styled from "styled-components" and then Styled.css it seems to work however.