parseactions: fix for unnamed enums
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 20 Dec 2005 21:29:03 +0000 (21:29 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 20 Dec 2005 21:29:03 +0000 (21:29 +0000)
lib/actions/parseactions.py

index 683febd..d0c1aec 100644 (file)
@@ -48,6 +48,11 @@ def do_file(f, mode):
                if t == "enum" and state == classstate + 1:
                        actionname = tokens.next()
                        
+                       if actionname == "{":
+                               while tokens.next() != "}":
+                                       pass
+                               continue
+                       
                        if actionname[-7:] == "Actions":
                                if tokens.next() != "{":
                                        try: