[geany/geany] cd267d: Merge pull request #2036 from techee/symbol_tree_vartype
Colomban Wendling
git-noreply at xxxxx
Sun Jan 13 14:43:12 UTC 2019
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sun, 13 Jan 2019 14:43:12 UTC
Commit: cd267de29c1de897d7b08aef62af32b9713d272e
https://github.com/geany/geany/commit/cd267de29c1de897d7b08aef62af32b9713d272e
Log Message:
-----------
Merge pull request #2036 from techee/symbol_tree_vartype
Show variable type in a tooltip in symbol tree
Modified Paths:
--------------
src/symbols.c
Modified: src/symbols.c
12 lines changed, 12 insertions(+), 0 deletions(-)
===================================================================
@@ -908,6 +908,18 @@ static gchar *get_symbol_tooltip(GeanyDocument *doc, const TMTag *tag)
{
gchar *utf8_name = editor_get_calltip_text(doc->editor, tag);
+ if (!utf8_name && tag->var_type &&
+ tag->type & (tm_tag_field_t | tm_tag_member_t | tm_tag_variable_t | tm_tag_externvar_t))
+ {
+ if (tag->lang != TM_PARSER_PASCAL && tag->lang != TM_PARSER_GO)
+ utf8_name = g_strconcat(tag->var_type, " ", tag->name, NULL);
+ else
+ {
+ const gchar *sep = tag->lang == TM_PARSER_PASCAL ? " : " : " ";
+ utf8_name = g_strconcat(tag->name, sep, tag->var_type, NULL);
+ }
+ }
+
/* encodings_convert_to_utf8_from_charset() fails with charset "None", so skip conversion
* for None at this point completely */
if (utf8_name != NULL &&
--------------
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