diff options
| author | gingerBill <bill@gingerbill.org> | 2023-08-01 11:14:52 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-08-01 11:14:52 +0100 |
| commit | 2f094134a3e54cb6b99daf09b6a257b36f182b6e (patch) | |
| tree | 67b66eddbabef2ef3b50804a7e4cba5adbb7dcea /src/parser.cpp | |
| parent | 69e1f42aedad0d1992e64989aac1d236bee3d4d9 (diff) | |
Remove `-strict-style-init-only`
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index c991f5741..1aa03033e 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1602,8 +1602,6 @@ gb_internal void assign_removal_flag_to_semicolon(AstFile *f) { if (build_context.strict_style || (ast_file_vet_flags(f) & VetFlag_Semicolon)) { syntax_error(*prev_token, "Found unneeded semicolon"); - } else if (build_context.strict_style_init_only && f->pkg->kind == Package_Init) { - syntax_error(*prev_token, "Found unneeded semicolon"); } prev_token->flags |= TokenFlag_Remove; } |