No... the best way is to use the same color for all occurrences of the same identifier. So, on the last example, all instances of say "audio" should be of the same color, and those of "filename" of another color.
I tried that for a while but found it's just too colourful. I prefer tasteful colours, somewhere between the two bad extremes demonstrated in this article, but also when you click and identifier it highlights all instances of it.