Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Thu, 28 May 2015 14:27:32 UTC Commit: 95368425f4058112a021590b9f8fb52f9e51fb48 https://github.com/geany/geany/commit/95368425f4058112a021590b9f8fb52f9e51fb...
Log Message: ----------- Use pascal-like function prototypes for go in symbol tree
Modified Paths: -------------- src/editor.c
Modified: src/editor.c 7 lines changed, 4 insertions(+), 3 deletions(-) =================================================================== @@ -1790,7 +1790,7 @@ static gboolean append_calltip(GString *str, const TMTag *tag, filetype_id ft_id if (! tag->arglist) return FALSE;
- if (ft_id != GEANY_FILETYPES_PASCAL) + if (ft_id != GEANY_FILETYPES_PASCAL && ft_id != GEANY_FILETYPES_GO) { /* usual calltips: "retval tagname (arglist)" */ if (tag->var_type) { @@ -1815,14 +1815,15 @@ static gboolean append_calltip(GString *str, const TMTag *tag, filetype_id ft_id g_string_append(str, tag->arglist); } else - { /* special case Pascal calltips: "tagname (arglist) : retval" */ + { /* special case Pascal/Go calltips: "tagname (arglist) : retval" + * (with ':' omitted for Go) */ g_string_append(str, tag->name); g_string_append_c(str, ' '); g_string_append(str, tag->arglist);
if (!EMPTY(tag->var_type)) { - g_string_append(str, " : "); + g_string_append(str, ft_id == GEANY_FILETYPES_PASCAL ? " : " : " "); g_string_append(str, tag->var_type); } }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).