JavaScript highlighting can break when the nullish coalescing operator is used

XMLWordPrintable

    • Severity 3 - Minor

      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.

            Assignee:
            John van der Loo (Inactive)
            Reporter:
            John van der Loo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: