<p></p>
<blockquote>
<p dir="auto">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.</p>
</blockquote>
<p dir="auto">Ok, well I just checked and Python also allows use before "declare" (assignment), eg</p>
<pre class="notranslate"><code class="notranslate">>>> for i in range(2):
...     if i == 1:
...             print(j)
...     else:
...             j = 55;
... 
55
</code></pre>
<p dir="auto">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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/3175#issuecomment-1112761953">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4GS66QPOEMZF6WWK3VHMRK7ANCNFSM5T5CX5RA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ6KSAQCE4UYTUDXZSTVHMRK7A5CNFSM5T5CX5RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIJJWMYI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/pull/3175/c1112761953</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3175#issuecomment-1112761953",
"url": "https://github.com/geany/geany/pull/3175#issuecomment-1112761953",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>