Unsolved Why the collection and value of foreach statement have no color identification in the editor?
-
Why the collection and value of foreach statement have no color identification in the editor?
-
What do you mean? Ranged for loop has the same colouring. What colours do you expect?
(btw. don't use foreach in new code, it's semi-deprecated, see the docs)
-
@sierdzio
hi,Please see below -
For me the type is being highlighted. Perhaps you're using old Qt Creator version?
foreach
is a macro so the old parser could interpret the arguments as strings instead of concrete types.