This example is obviously not useful on its own, but it will cover everything I actually need to know for a more complicated function I'm making.
The example is to recreate the
Do function, and call it
Do2. My code is as follows:
Do2[function_, iterator_] := Do[function, Evaluate[iterator]] SetAttributes[Do2, HoldAll]
Do2's iterator i is blue, but Do's iterator i is cyan.
Do is under "Variables made special by use in arguments",
i in my
Do2 is under "Global symbols that have no value assigned".
How do I get the
Do2 to be under "Variables made special by use in arguments"? It seems like it should be under this category, and that the highlighting is wrong.