]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Listen to the warning instead...
authorWolfgang Bumiller <wolfgang.linux@bumiller.com>
Thu, 26 Jul 2012 21:25:33 +0000 (23:25 +0200)
committerWolfgang Bumiller <wolfgang.linux@bumiller.com>
Thu, 26 Jul 2012 21:25:33 +0000 (23:25 +0200)
parser.c

index 16f4d591c28d533b6820d842825e1d957d7c1e22..3ee206efaf713bbb123d0b0fef4b0aed62e781ce 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -575,11 +575,13 @@ static bool parser_body_do(parser_t *parser, ast_block *block)
             }
             return true;
         }
+        parseerror(parser, "Unexpected keyword");
+        return false;
     }
     else if (parser->tok == '{')
     {
         /* a block */
-        parseerror(parser, "TODO: inner blocks");
+        parseerror(parser, "TODO: inner blocks: %s", parser_tokval(parser));
         return false;
     }
     else
@@ -593,7 +595,6 @@ static bool parser_body_do(parser_t *parser, ast_block *block)
         }
         return true;
     }
-    return false;
 }
 
 static ast_block* parser_parse_block(parser_t *parser)