-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
Description
🐛 bug report
Preflight Checklist
- I have read the
Contributing Guidelines
for this project. - I agree to follow the
Code of Conduct
that this project adheres to. - I have searched the issue tracker for an issue that matches the one I want
to file, without success.
Description of the problem
JSX syntax highlighting is broken following the use of the the Nullish Coalescing Operator (??
).
How has this issue affected you? What are you trying to accomplish?
To Reproduce
Use the Nullish Coalescing Operator in an arrow function in a JSX file. Code following will have broken syntax highlighting.
See https://github.com/zvodd/ReactDemo-EditableTexts/tree/main/ for repo, or...
Link to sandbox: https://codesandbox.io/s/agitated-shockley-9oxb0?file=/src/App.js
Your Environment
Software | Name/Version |
---|---|
Сodesandbox | ?? / Live [15-Mar-2021] |
Browser | Chrome 89.0.4389.82 |
Operating System | Windows 10 AMD64 |
lionel-rowe and chanceaclark