[Github-comments] [geany/geany] Added support for scoped function calltips (#1176)

elextr notifications at xxxxx
Fri Aug 12 09:29:47 UTC 2016


> +
> +	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 = ":.";
> +	if (wc == NULL)
> +		wc = GEANY_WORDCHARS;
> +		
> +	// first, loop backwards until punctuation ScopeA::ScopeB::Function
> +	//                                                        ^
> +	while (endword > 0 && (strchr(wc, chunk[endword - 1]) || ! IS_ASCII(chunk[endword - 1])))

strictly there can be whitespace like `scopea :: scopeb ::` in some languages

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1176/files/d51e8b3cff412746f5ed820b5c628f0b46ef67a6#r74563977
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160812/368499a6/attachment.html>


More information about the Github-comments mailing list