summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/code.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code.l b/src/code.l
index 3aa9837..693a20f 100644
--- a/src/code.l
+++ b/src/code.l
@@ -398,7 +398,7 @@ static CallContext g_theCallContext;
static void pushScope(const char *s)
{
g_classScopeLengthStack.push(new int(g_classScope.length()));
- if (g_classScope.isEmpty())
+ if (g_classScope.isEmpty() || leftScopeMatch(s,g_classScope))
{
g_classScope = s;
}