[Github-comments] [geany/geany] Fix the symbols tree hierarchy when several tags have the same name (#1598)
Jiří Techet
notifications at xxxxx
Sat Sep 23 13:38:05 UTC 2017
techee commented on this pull request.
> - if (g_hash_table_lookup_extended(table, tag->name, NULL, (gpointer *) &tree) &&
- ! utils_str_equal(parent_name, tag->name) /* prevent Foo::Foo from making parent = child */)
+
+ if (EMPTY(tag->scope))
+ {
+ /* simple case, just use the tag name */
+ name = tag->name;
+ }
+ else if (! tm_tag_has_full_context(tag->lang))
+ {
+ /* if the parser doesn't use fully qualified scope, use the name alone but
+ * prevent Foo::Foo from making parent = child */
+ if (utils_str_equal(tag->scope, tag->name))
+ name = NULL;
+ else
+ name = tag->name;
g_strdup()
--
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/1598#pullrequestreview-64739692
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170923/4448d038/attachment.html>
More information about the Github-comments
mailing list