Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-14590

Online editor does not terminate template literals

    XMLWordPrintable

Details

    Description

      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:

      #!javascript
      
      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();
      }
      
      

      Attachments

        1. 2784052707-screenshot.PNG
          2784052707-screenshot.PNG
          18 kB
        2. Untitled-3.jpg
          Untitled-3.jpg
          20 kB

        Activity

          People

            Unassigned Unassigned
            522d9fe55de9 Christian Moe
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: