Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

CSS grammar not injected for custom styled-components #634

Closed

Description

@edahlseng

Prerequisites

Description

The CSS grammar is not properly injected for styled-components using custom components.

Steps to Reproduce

The following correctly syntax highlights:

const TestComponent = styled.div`
	h1 {
		color: green;
	}
`;

image

The following does not correctly syntax highlight:

const TestComponent = styled(UnstyledComponent)`
	h1 {
		color: green;
	}
`;

image

Versions

$ atom --version
Atom    : 1.34.0
Electron: 2.0.16
Chrome  : 61.0.3163.100
Node    : 8.9.3

$ apm --version
apm  2.1.3
npm  6.2.0
node 8.9.3 x64
atom 1.34.0
python 2.7.15
git 2.20.1

Activity

  1. rsese commented on Jan 17, 2019

    @rsese

    Thanks @edahlseng - confirmed on macOS 10.12.6 with 1.34.0:

    correct

    incorrect

  2. added a commit that references this issue on Feb 7, 2019
    1f1da30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions