fix dot init parsing

This commit is contained in:
Vexu
2019-12-12 18:26:12 +02:00
committed by Andrew Kelley
parent d08dc21116
commit c759a77aa0
2 changed files with 17 additions and 1 deletions

View File

@@ -1923,7 +1923,11 @@ static AstNode *ast_parse_anon_lit(ParseContext *pc) {
}
// anon container literal
return ast_parse_init_list(pc);
AstNode *res = ast_parse_init_list(pc);
if (res != nullptr)
return res;
put_back_token(pc);
return nullptr;
}
// AsmOutput <- COLON AsmOutputList AsmInput?