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

qml highlighting doesn't understand for/of.

    XMLWordPrintable

Details

    • All
    • 85c8e1d4f (master)

    Description

      In the code editor, while editing a QML file, you get colors and such for core javascript concepts.

      For instance:

      for (let x in myList) doSomething()

      this gives useful colors, 'for' is a keyword, 'let' is a different color', the braces are a boring color. And indeed 'in' (as part of the for loop) is the same color as 'let'.

      When you use the second special for loop in JavaScript you replace the 'in' with 'of'. Like this;

      for (let x of myList) doSomething()

      It would be consistent and nice if the 'of' in that line were to get a consistent color. In my version of Qt Creator it is just a boring gray. Just like the braces and the semicolons are. It looks like QtCreator doesn't recognize this form of loop at all for the color highlighting.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sami.shalayel Sami Shalayel
            tomz Tom Zander
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes