Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 17 Sep 2012 12:44:32 Commit: 022524ba2615695425cca2f4b919b74a96cf7707 https://github.com/geany/geany/commit/022524ba2615695425cca2f4b919b74a96cf77...
Log Message: ----------- Report Python class methods as methods rather than members
This makes the Python kinds more consistent with other parsers and allows to find Python methods when filtering on tm_tag_method_t.
Modified Paths: -------------- tagmanager/ctags/python.c
Modified: tagmanager/ctags/python.c 6 files changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -25,13 +25,13 @@ * DATA DEFINITIONS */ typedef enum { - K_CLASS, K_FUNCTION, K_MEMBER, K_VARIABLE, K_IMPORT + K_CLASS, K_FUNCTION, K_METHOD, K_VARIABLE, K_IMPORT } pythonKind;
static kindOption PythonKinds[] = { {TRUE, 'c', "class", "classes"}, {TRUE, 'f', "function", "functions"}, - {TRUE, 'm', "member", "class members"}, + {TRUE, 'm', "method", "class methods"}, {TRUE, 'v', "variable", "variables"}, {TRUE, 'i', "namespace", "imports"} }; @@ -103,7 +103,7 @@ static void makeFunctionTag (vString *const function, { if (is_class_parent) { - tag.kindName = "member"; + tag.kindName = "method"; tag.kind = 'm'; tag.extensionFields.scope [0] = "class"; tag.extensionFields.scope [1] = vStringValue (parent);
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).