You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Expected (without the 3rd level of nesting)
The text was updated successfully, but these errors were encountered:
This is one of the core limitations of Prism being a regex-based: we can't do nested structures. We usually work around this by supporting some number of levels of nestedness but it seems like you found out how many levels we support ;).
Unfortunately, this isn't something we can (easily) fix.
We already have a similar issue, so I'll close this as a duplicate.
Information
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.
Screenshot
Expected (without the 3rd level of nesting)
![image](https://user-images.githubusercontent.com/27664726/96647290-d92d3d00-1389-11eb-93ec-a78674efba09.png)
The text was updated successfully, but these errors were encountered: