Skip to content

JSX Syntax Highlighting - Nullish Coalescing Operator breaks highlighting #5587

@zvodd

Description

@zvodd

🐛 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.
Screenshot

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions