- g_return_if_fail(editor != NULL);
- sci = editor->sci;
- if (pos == -1)
pos = sci_get_current_position(sci);
- line = sci_get_line_from_position(sci, pos);
- line_start = sci_get_position_from_line(sci, line);
- startword = pos - line_start;
- endword = pos - line_start;
- word[0] = '\0';
- chunk = sci_get_line(sci, line);
- const char *punctuation = ":.";
Well it doesn't assume LHS is the scope, it just checks for exact matches to display functions. If there are no matches it behaves normally.
But yeah it could lookup the type of any functions on the left hand side and convert it to an existing scope to pass to tm_workspace_find. Now that wouldn't be useful for me as I'm using it for javascript, and functions don't have static return types. But a quick test shows it it possible-- `class A {}; class B { static A aFunction(); }; B::aFunction` Geany says: `aFunction's scope: B, class: (null), type: A`