From 4ef7e0c7eb646daeb9656e5955d87aebea2ab500 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Mon, 1 Oct 2007 10:52:56 +0000 Subject: [PATCH] Show parent class for inner classes. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1921 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 6 ++++++ tagmanager/python.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 90c86273..3de3d820 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-10-01 Nick Treleaven + + * tagmanager/python.c: + Show parent class for inner classes. + + 2007-09-28 Nick Treleaven * src/keybindings.c: diff --git a/tagmanager/python.c b/tagmanager/python.c index 9bdee472..cf4565ed 100644 --- a/tagmanager/python.c +++ b/tagmanager/python.c @@ -177,7 +177,11 @@ static void findPythonTags (void) newclass->name = g_strdup(vStringValue(name)); newclass->indent = indent; parents = g_list_append(parents, newclass); - makeSimpleTag (name, PythonKinds, K_CLASS); + if (lastclass == NULL) + makeSimpleTag (name, PythonKinds, K_CLASS); + else + makeSimpleScopedTag (name, PythonKinds, K_CLASS, + PythonKinds[K_CLASS].name, lastclass->name, "public"); vStringClear (name); lastclass = newclass;