<p></p>
<p><b>@techee</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/3185#discussion_r867492090">src/tagmanager/tm_workspace.c</a>:</p>
<pre style='color:#555'>>  {
-       TMTag **tag, *last = NULL;
-       guint i, count, num;
+       TMParserType lang = current_file ? current_file->lang : TM_PARSER_NONE;
+
+       /* ignore local variables from other files/functions or after current line */
+       gboolean valid = !(tag->type & tm_tag_local_var_t) ||
+               (current_file == tag->file &&
+                current_line >= tag->line &&
</pre>
<p dir="auto">Because I think that even though it's syntactically valid, such cases are rare enough to justify seeing many more (invalid) local variables defined after the current line. But this is something that will have to be tested once Python local variables are enabled.</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/3185#discussion_r867492090">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5TZ6HECJQ3P4CBFDTVI66Y7ANCNFSM5UWGU33A">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ6N2HYM6PHXYYVVMK3VI66Y7A5CNFSM5UWGU33KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOHGFXORI.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/3185/review/965441349</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/3185#discussion_r867492090",
"url": "https://github.com/geany/geany/pull/3185#discussion_r867492090",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>