commit 1e505030f673e987de582c7377d1f476419c887e
parent 90dd45a07f75b84487a0c25d245f71108c6dbb64
Author: Drew DeVault <sir@cmpwn.com>
Date: Sat, 13 Feb 2021 12:03:02 -0500
parse: fix incorrect synassert message
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/parse.c b/src/parse.c
@@ -1971,7 +1971,7 @@ parse_binding_list(struct lexer *lexer, bool is_static)
binding->initializer = parse_complex_expression(lexer);
break;
default:
- synassert(false, &tok, T_COLON, T_COMMA, T_EOF);
+ synassert(false, &tok, T_COLON, T_EQUAL, T_EOF);
}
switch (lex(lexer, &tok)) {