Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 17 Sep 2012 12:44:33 Commit: eed6e25a0e8ad7e21aeeefa1d64a43865400cad9 https://github.com/geany/geany/commit/eed6e25a0e8ad7e21aeeefa1d64a43865400ca...
Log Message: ----------- Don't duplicate the kind names and letters
Modified Paths: -------------- tagmanager/ctags/python.c
Modified: tagmanager/ctags/python.c 16 files changed, 8 insertions(+), 8 deletions(-) =================================================================== @@ -88,8 +88,8 @@ static void makeFunctionTag (vString *const function, tagEntryInfo tag; initTagEntry (&tag, vStringValue (function));
- tag.kindName = "function"; - tag.kind = 'f'; + tag.kindName = PythonKinds[K_FUNCTION].name; + tag.kind = PythonKinds[K_FUNCTION].letter; tag.extensionFields.arglist = arglist; /* add argument list of __init__() methods to the class tag */ if (strcmp (vStringValue (function), "__init__") == 0 && parent != NULL) @@ -103,8 +103,8 @@ static void makeFunctionTag (vString *const function, { if (is_class_parent) { - tag.kindName = "method"; - tag.kind = 'm'; + tag.kindName = PythonKinds[K_METHOD].name; + tag.kind = PythonKinds[K_METHOD].letter; tag.extensionFields.scope [0] = "class"; tag.extensionFields.scope [1] = vStringValue (parent); } @@ -140,8 +140,8 @@ static void makeClassTag (vString *const class, vString *const inheritance, { tagEntryInfo tag; initTagEntry (&tag, vStringValue (class)); - tag.kindName = "class"; - tag.kind = 'c'; + tag.kindName = PythonKinds[K_CLASS].name; + tag.kind = PythonKinds[K_CLASS].letter; if (vStringLength (parent) > 0) { if (is_class_parent) @@ -163,8 +163,8 @@ static void makeVariableTag (vString *const var, vString *const parent) { tagEntryInfo tag; initTagEntry (&tag, vStringValue (var)); - tag.kindName = "variable"; - tag.kind = 'v'; + tag.kindName = PythonKinds[K_VARIABLE].name; + tag.kind = PythonKinds[K_VARIABLE].letter; if (vStringLength (parent) > 0) { tag.extensionFields.scope [0] = "class";
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).