<p>In <a href="https://github.com/geany/geany/pull/862#discussion_r49374973">src/editor.c</a>:</p>
<pre style='color:#555'>> }
> - else if (typed != '.')
> - return;
> +
> + if (typed == '.')
> + pos -= 1;
> + else if (match_last_chars(sci, pos, context_sep))
> + pos -= strlen(context_sep);
> + else if ((ft->id == GEANY_FILETYPES_C || ft->id == GEANY_FILETYPES_CPP) &&
> + match_last_chars(sci, pos, "->"))
> + pos -= 2;
> + else if (ft->id == GEANY_FILETYPES_CPP && match_last_chars(sci, pos, "->*"))
> + pos -= 3;
> + else
</pre>
<p>For PHP and Zephir (if we get completion for namespaces, see the comment in the PR itself) it would be good to support <code>\</code> separator which is used to separate namespaces (<code>Namespace1\Namespace2\Class::member</code> -- yes, PHP is weird).</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/files#r49374973">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ0MH5lc2I2E-eTmf9rWvi_PWPd0Aks5pZAnWgaJpZM4HB6zU.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/files#r49374973"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>