Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt Creator 15.0.1
-
None
-
-
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
For Gerrit Dashboard: QTCREATORBUG-32843 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
641075,3 | qqmljssemantichighlighter: highlight 'of' in for-loops | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |