Ast: fix expected_block error message

Fixes #14579
This commit is contained in:
Ali Chraghi 2023-02-17 12:29:15 +03:30 committed by Veikka Tuominen
parent 3f7e9ff597
commit c32171991b

View File

@ -207,7 +207,7 @@ pub fn renderError(tree: Ast, parse_error: Error, stream: anytype) !void {
return stream.writeAll("declarations are not allowed between container fields"); return stream.writeAll("declarations are not allowed between container fields");
}, },
.expected_block => { .expected_block => {
return stream.print("expected block or field, found '{s}'", .{ return stream.print("expected block, found '{s}'", .{
token_tags[parse_error.token + @boolToInt(parse_error.token_is_prev)].symbol(), token_tags[parse_error.token + @boolToInt(parse_error.token_is_prev)].symbol(),
}); });
}, },