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

Emmet (styles): In one file it works, in the other there is no #211

Open nicothin opened 5 years ago

nicothin commented 5 years ago

Syntax: javascript (naomi) If I remove the export function in the second file, Emmet starts working in it.

gif: https://raw.githubusercontent.com/nicothin/nicothin.github.io/master/img/emmet-problem.gif

nicothin commented 5 years ago

Add

If i add one line (const with some function) before styles, Emmet start working. WTF? ))

// If the next line exists, emmet in styles begins to work.
const emmet = () => <Emmet {...props} />; // This component does not exist.

const Container = styled.div`
  margin: 0;
  padding: 0; // This expanded from 'p0' by pressing the TAB button
`;