<p></p>
<p dir="auto">For everyone who investigates this bug - the erlang ctags parser is very primitive and distinguishes function definitions only based on indentation in code such as:</p>
<pre><code>tot_print(ToT) ->
  tot_print(1, ToT).
tot_print(Y, ToT) when Y =< size(ToT) ->
  tot_print_tuple(element(Y, ToT)),
  io:fwrite("~n"),
  tot_print(Y+1, ToT);
tot_print(Y, ToT) -> ok.
tot_print_tuple(T) ->
  tot_print_tuple(1, T).
tot_print_tuple(X, T) when X =< size(T) ->
  io:fwrite("~s", [[element(X, T)]]),
  tot_print_tuple(X+1, T);
tot_print_tuple(X, T) -> ok.
</code></pre>
<p dir="auto">So for the ctags parser, definitions are those lines without any indentation. I think proper fix would require rewriting the whole parser to something better.</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/issues/2653#issuecomment-1005646116">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7CUMQ2X3E5KSGP4LLUUQ2ZZANCNFSM4TQJ75AA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ4CCJBGAEXF2BLEFTDUUQ2ZZA5CNFSM4TQJ75AKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHPYPCJA.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/issues/2653/1005646116</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/issues/2653#issuecomment-1005646116",
"url": "https://github.com/geany/geany/issues/2653#issuecomment-1005646116",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>