Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12575

JavaScript highlighting can break when the nullish coalescing operator is used

    XMLWordPrintable

Details

    Description

      Issue Summary

      When using a nullish coalescing operator in JavaScript code, syntax highlighting can break.

      Steps to Reproduce

      Have a nullish coalescing operator in your code, e.g.

      const BAR = 'bar'
      const foobar = `${foo ?? 'vf'}`;
      // after the nullish coalescing operator the highlighting breaks
      

      Expected Results

      Highlighting doesn't break

      Actual Results

      Highlighting breaks

      This has been fixed in CodeMirror and should be released in its next release (5.58).

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

      Attachments

        Activity

          People

            jvanderloo@atlassian.com John van der Loo (Inactive)
            jvanderloo@atlassian.com John van der Loo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Backbone Issue Sync