Browse Source

Change trailing comma require to `-strict-style` only

gingerBill 2 năm trước cách đây
mục cha
commit
ba02ef8f25
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/parser.cpp

+ 1 - 1
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)) {