<p>Heh :)  I'll try yours, but meanwhile I tried to sort this out on my end, and ended up with somewhat large logic changes that don't seem so absurd: <a href="https://github.com/geany/geany/commit/d86edcaef476e16ef2e6f31b605a16893b055d36" class="commit-link"><tt>d86edca</tt></a> (based off a weird branch, beware).</p>

<p>Tested with a ridiculously complex case:</p>

<div class="highlight highlight-source-c"><pre><span class="pl-k">typedef</span> <span class="pl-k">struct</span> Abc {
  <span class="pl-k">int</span> b, c;
} Abc;

<span class="pl-k">extern</span> <span class="pl-k">int</span> Abc;
<span class="pl-k">int</span> Abc = <span class="pl-c1">0</span>;
<span class="pl-k">int</span> Abc = <span class="pl-c1">0</span>;

<span class="pl-k">int</span> <span class="pl-en">Abc</span>(<span class="pl-k">void</span>);
<span class="pl-k">int</span> <span class="pl-en">Abc</span>(<span class="pl-k">void</span>);

<span class="pl-k">int</span> <span class="pl-en">Abc</span>(<span class="pl-k">void</span>)
{
    <span class="pl-k">return</span> <span class="pl-c1">0</span>;
}</pre></div>

<p>and the simple case:</p>

<div class="highlight highlight-source-c"><pre><span class="pl-k">typedef</span> <span class="pl-k">struct</span> Bcd {
  <span class="pl-k">int</span> b, c;
} Bcd;

<span class="pl-k">int</span> <span class="pl-en">foo</span>(<span class="pl-k">void</span>)
{
    <span class="pl-k">return</span> Bcd::b;
}</pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/923#issuecomment-192342461">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_avZyfklJwmb2OVzPMprTXArCeXks5pqFzCgaJpZM4HlaDx.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/923#issuecomment-192342461"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>