[Github-comments] [geany/geany] TM cleanups (#957)
Colomban Wendling
notifications at xxxxx
Tue May 3 17:27:54 UTC 2016
> @@ -109,6 +109,35 @@ gchar *tm_get_real_path(const gchar *file_name)
> return NULL;
> }
>
> +/* add argument list of __init__() Python methods to the class tag */
> +static void update_python_arglist(const TMTag *tag)
> +{
> + guint i;
> + const char *parent_tag_name;
> +
> + if (tag->type != tm_tag_method_t || tag->scope == NULL ||
> + g_strcmp0(tag->name, "__init__") != 0)
> + return;
> +
> + parent_tag_name = strrchr(tag->scope, '.');
note: doesn't support the `/` separator previous code did, but our parser doesn't have it anyway.
Also, it would only concern classes defined inside a function or method, which is less common.
---
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/957/files/f61a64be29cbba0162f92eb5c1fe4aa2af33fd33#r61921048
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160503/b1926feb/attachment.html>
More information about the Github-comments
mailing list