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 683febd9a13f68c328696ccd465b56009972abd2..d0c1aec374c9ab2c498d98771f1dade63f6737df 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: