In src/editor.c:

> +
> +	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 = ":.";

I haven't really looked over the code (existing or your changes), but couldn't it lookup the tag for the type of the left hand side, and use that as a the scope, rather than assuming the LHS is the scope? Like if the LHS was a function call, it would use the return type or if it was an instance, it would use the type of its declaration.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.