Skip to content

JSX - Nested objects inside props #2598

@kevinalexandermanson

Description

@kevinalexandermanson

Information

  • Language: JSX
  • Plugins: None

Description
Nested objects inside attributes/props in JSX seems to break the syntax highlighting. Based on reading some other issues it seems like maybe this is not something that would be supported, but thought I would just confirm that this is the case.

Code snippet

The code being highlighted incorrectly.
<Component one={{ two: { three: {} } }} />

Screenshot

image

Expected (without the 3rd level of nesting)
image

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