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
557 stars 20 forks source link

typescript type for styled component breaks syntax highlighting #265

Open lubelski opened 3 years ago

lubelski commented 3 years ago

Observed

when using types on the styled component, the syntax highlighting is not applied

image

Code

const Component = styled.div`
    border: 1px solid red;
    color: blue;
`;

const Component2 = styled.div<{ color: string }>`
    border: 1px solid red;
    color: ${p => p.color || 'blue'};
`;