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?
Right. In this case I think we want the scope to be part of var_type because we need to distinguish
``` class Foo { Bar bar; } ```
from
``` Foo::Bar bar; ```
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.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/862#issuecomment-172791492