Commit 814b4326 authored by Guillaume Charifi's avatar Guillaume Charifi

compiler/parser: Disallow semicolons before interface block.

parent 6f918804
......@@ -1500,7 +1500,7 @@ static int parse_interface(struct parser_ctx *ctx, unsigned long *cur_tok_id)
if (buffer_get_line_count(&interface.data.as_interface.type.class_path.seqs) > 0)
goto failed;
parser_ignore_newlines_or_semicolons(ctx, &i);
parser_ignore_newlines(ctx, &i);
if (ctx->in->tokens[i].type != BM_TOK_CURLY_BRACKET_OPEN)
goto failed;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment