borela / naomi

Sublime Text enhanced syntax highlighting for JavaScript ES6/ES7/ES2015/ES2016/ES2017+, Babel, FlowType, React JSX, Styled Components, HTML5, SCSS3, PHP 7, phpDoc, PHPUnit, MQL4. Basic: Git config files.
Other
558 stars 18 forks source link

Dot before placeholder in template literal breaks css highlighting #194

Open pedroscaff opened 5 years ago

pedroscaff commented 5 years ago

Dot before placeholder in template literal breaks css highlighting.

image

import { css } from 'react-emotion'

const classFoo = 'foo'

const style = css`
  width: 100px;
  // this works
  .foo {
    width: 100px;
  }
  // this doesn't work
  .${classFoo} {
    width: 100px;
  }
`