<p>In <a href="https://github.com/geany/geany/pull/505#discussion_r49268284">src/editor.c</a>:</p>
<pre style='color:#555'>>                      pos--;
> -          else if (ft->id == GEANY_FILETYPES_CPP && pos >= 3 && match_last_chars(sci, pos, "->*"))
> +
> +          if (pos > 0)
> +                  typed = sci_get_char_at(sci, pos - 1);
> +  }
> +
> +  if (typed == '.')
> +          pos -= 1;
> +  else if (ft->id == GEANY_FILETYPES_C || ft->id == GEANY_FILETYPES_CPP ||
> +          ft->id == GEANY_FILETYPES_PHP || ft->id == GEANY_FILETYPES_RUST)
> +  {
> +          if (match_last_chars(sci, pos, "::"))
</pre>
<p>just a thought: what about using <code>tm_tag_context_separator()</code> instead of checking for some filetypes?  Not sure it's sensible at all, but right now I see the check above will leave out GLSL, Zephir and PowerShell (not sure if it'd make sense for the latter, but definitely for the former two).</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/505/files#r49268284">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJzQBR5hOShFXXac4HMs8QkRpzFFAks5pYXACgaJpZM4EsdtV.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/505/files#r49268284"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>