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

`createGlobalStyle` from styled-components breaks CSS highlighting (behavior should be the same as `injectGlobal`) #188

Open acnebs opened 5 years ago

acnebs commented 5 years ago

createGlobalStyle was introduced in styled-components v4 to be a better version of injectGlobal. But at the moment is not supported by Naomi's syntax highlighting.

import { createGlobalStyle } from 'styled-components';

export default createGlobalStyle`
  span {
    color: green;
  }
`
borela commented 5 years ago

Fixed https://github.com/borela/naomi/releases/tag/v4.2.10