From e1c46002605c8af1d01392f76179e78c6eff69f0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 26 Jul 2012 23:25:33 +0200 Subject: [PATCH] Listen to the warning instead... --- parser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parser.c b/parser.c index 16f4d59..3ee206e 100644 --- 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)