Menu

#1167 highlighting a variable when definition is commented out

open
Editor (491)
5
2010-06-04
2010-06-04
Ehsan Amiri
No

I have a problem that looks very basic. Look at this very simple example:

def func(i):
#a = a+i
return a

def g(i):
a = a*i
return a

If I uncomment the first line of the first function everything is OK. If I put the cursor on any occurrence of a, it highlights all the occurrences of a in that function. But in the example above the behavior is almost random. Sometimes all a are highlighted, sometimes some of them.........To me looks like a bug.

Discussion