[geany/geany] 953684: Use pascal-like function prototypes for go in symbol tree
Jiří Techet
git-noreply at xxxxx
Thu May 28 14:27:32 UTC 2015
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Thu, 28 May 2015 14:27:32 UTC
Commit: 95368425f4058112a021590b9f8fb52f9e51fb48
https://github.com/geany/geany/commit/95368425f4058112a021590b9f8fb52f9e51fb48
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).
More information about the Commits
mailing list