Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22766

JavaScript editor misses syntax highlighting for multi line template strings

    XMLWordPrintable

Details

    • All
    • bd053847652a0c5d2d0bcf982296cbb8bd7579cf (qt-creator/qt-creator/master)

    Description

      According to `https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/template_strings` multiline template strings are valid. Qt Creator JS Editor does not highlight these strings.

      I would expect the JS Editor highlights the template strings as also variable references insight these template strings.

      this works
      ```
      var tpl = `hello ${hello}`
      ```

      this fails
      ```
      var tpl = `
      hello ${hello}
      `
      ```

      The closing ``` is not recognised and all text beyond is coloured as comment text.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-22766
        # Subject Branch Project Status CR V

        Activity

          People

            fawzi Fawzi Mohamed
            jryannel-lxft Jürgen Bocklage-Ryannel
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes