To a degree this is a known problem. The basic problem is that our colouring code has to run very quickly, to keep up with scrolling through the code, and it also has to work behind the IDE's back, so we do not have full control of the display.
So it is possible to confuse our colouring code, using the same name for different things in the same file is a good way to do this.
Do you have a lot of cases like this in your code?
> Do you have a lot of cases like this in your code?
There are enough cases so that it is distracting and confusing at times. I love it when it works but it really "takes me out of the zone" when it's wrong.