Permalink
Browse files

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.
  • Loading branch information...
1 parent 17396aa commit 022524ba2615695425cca2f4b919b74a96cf7707 @b4n b4n committed Sep 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tagmanager/ctags/python.c
View
6 tagmanager/ctags/python.c
@@ -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);

0 comments on commit 022524b

Please sign in to comment.