<blockquote>
<p>Damn, you're right. Though, while trying to fix this in the C parser, I don't think it works now it reports ns::C. Probably the type is not split up on scope separator, so a qualified type doesn't work I guess?</p>
</blockquote>

<p>Right. In this case I think we want the scope to be part of var_type because we need to distinguish</p>

<pre><code>class Foo {
    Bar bar;
}
</code></pre>

<p>from</p>

<pre><code>Foo::Bar bar;
</code></pre>

<p>I think the type-scope splitting of var_type could be done in the scope completion code when the parser gets fixed. But even after that it won't do any magic - we for instance don't see things like "using namespace Foo;" so scope completion won't work in all cases.</p>

<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/862#issuecomment-172791492">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ4E8q_KbqFWb9qQgSi2sfhkCsbsJks5pbfpagaJpZM4HB6zU.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/862#issuecomment-172791492"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>