Online editor does not terminate template literals

Issue #14590 new
Christian Moe
created an issue

In the online editor, all code after a template literal is highlighted as a comment.

It properly terminates, when viewing the file outside the editor.

Example:

if (value < 0 || value > 100) {
  console.warn(`Warning: ${value}`); // Everything after the last back-tick is highlighted as a comment
}

if (value <= 0) {
  this.die();
}

Comments (1)

  1. Log in to comment