diff --git a/plugins/symbol-db/anjuta-tags/c.c b/plugins/symbol-db/anjuta-tags/c.c
index ccca3a4..94942a4 100644
--- a/plugins/symbol-db/anjuta-tags/c.c
+++ b/plugins/symbol-db/anjuta-tags/c.c
@@ -1408,6 +1408,13 @@ static void skipToMatch (const char *const pair)
 			}
 		}
 	}
+
+
+	if (braceMatching)
+	{
+		printf ("End of scope at line: %ld\n", getSourceLineNumber());
+	}
+
 	if (c == EOF)
 	{
 		verbose ("%s: failed to find match for '%c' at line %lu\n",
@@ -2660,7 +2667,11 @@ static void nextToken (statementInfo *const st)
 				
 			case ',': setToken (st, TOKEN_COMMA);               break;
 			case ':': processColon (st);                        break;
-			case ';': setToken (st, TOKEN_SEMICOLON);           break;
+			case ';':
+				setToken (st, TOKEN_SEMICOLON);
+				if (st->parent == NULL)
+					printf ("End of scope in line %lu\n", getSourceLineNumber ());
+				break;
 			case '=': processInitializer (st);                  break;
 			case '[': skipToMatch ("[]");                       break;
 			case '{': setToken (st, TOKEN_BRACE_OPEN);          break;
