Skip to content

[Bug]: No Syntax highlighting when conforming to CRA styled-jsx style #1

@jkohlin

Description

@jkohlin

To reproduce:
Install:

npx create-react-app bug-demo
npm install --save-dev styled-jsx
npm install --save-dev sass @styled-jsx/plugin-sass

Add some styled-jsx (CRA-style):

<style jsx="true">
// whatever style...
</style>

Current behavior:
image
As you can see there is no syntax highlighting

Babel or Create React App (IDK) requires me to add jsx="true" otherwise it will through an error
image

Expected behavior:
image

I want what the plugin is supposed to do 😊
Syntax highlighting
Environment information:

  • VSCode version: 1.71.2
  • vscode-styled-jsx version: 2.1.1
  • styled-jsx version: 5.0.7

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions