Diff of /tagmanager/ctags/c.c [af5dfb] .. [b39f90]  Maximize  Restore

Switch to side-by-side view

--- a/tagmanager/ctags/c.c
+++ b/tagmanager/ctags/c.c
@@ -2629,14 +2629,6 @@
 		{
 			readParents (st, ':');
 		}
-		else if (parentDecl (st) == DECL_STRUCT || parentDecl (st) == DECL_CLASS)
-		{
-			c = skipToOneOf (",;");
-			if (c == ',')
-				setToken (st, TOKEN_COMMA);
-			else if (c == ';')
-				setToken (st, TOKEN_SEMICOLON);
-		}
 		else if ((isLanguage (Lang_cpp) || isLanguage (Lang_csharp)) &&
 				 st->declaration == DECL_ENUM)
 		{
@@ -2644,6 +2636,14 @@
 			c = skipToOneOf ("{;");
 			if (c == '{')
 				setToken (st, TOKEN_BRACE_OPEN);
+			else if (c == ';')
+				setToken (st, TOKEN_SEMICOLON);
+		}
+		else if (parentDecl (st) == DECL_STRUCT || parentDecl (st) == DECL_CLASS)
+		{
+			c = skipToOneOf (",;");
+			if (c == ',')
+				setToken (st, TOKEN_COMMA);
 			else if (c == ';')
 				setToken (st, TOKEN_SEMICOLON);
 		}