>       }
> -     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

For PHP and Zephir (if we get completion for namespaces, see the comment in the 
PR itself) it would be good to support `\` separator which is used to separate 
namespaces (`Namespace1\Namespace2\Class::member` -- yes, PHP is weird).

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/862/files#r49374973

Reply via email to