diff --git a/src/parser.cpp b/src/parser.cpp index 0d9fad8c7..437d6300e 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1434,7 +1434,7 @@ gb_internal Token expect_closing_brace_of_field_list(AstFile *f) { return token; } bool ok = true; - if (!f->allow_newline) { + if (f->allow_newline) { ok = !skip_possible_newline(f); } if (ok && allow_token(f, Token_Semicolon)) {