]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Adding an unrecognized keywords error
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 23 Nov 2012 20:41:50 +0000 (21:41 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 23 Nov 2012 20:41:50 +0000 (21:41 +0100)
parser.c

index fb13d2b09c5037b9009b38adeb2b26dc70bd852c..f8eb042d8c897a5fe6ed3064866ed617444663ec 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -3719,6 +3719,7 @@ static bool parser_global_statement(parser_t *parser)
             }
             return parse_variable(parser, NULL, true);
         }
+        parseerror(parser, "unrecognized keyword `%s`", parser_tokval(parser));
         return false;
     }
     else if (parser->tok == '$')