It only applies to languages where we use the tm_tag_local_var_t mapping - currently it is C/C++, could also be Python and GDScript, the rest of parsers don't report local variables.
Ok, well I just checked and Python also allows use before "declare" (assignment), eg
>>> for i in range(2):
... if i == 1:
... print(j)
... else:
... j = 55;
...
55
Statically j is used before its declaring assignment, but not at runtime which is what matters to Python, so clipping later declarations will need to be language specific.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.