Make .. ranges a complete error rather than a warning now.

This should have been an error years ago.
This commit is contained in:
gingerBill
2024-05-13 18:15:29 +01:00
parent 8fa20fb875
commit 0cf9dcd314

View File

@@ -1572,7 +1572,7 @@ gb_internal Token expect_operator(AstFile *f) {
LIT(p));
}
if (prev.kind == Token_Ellipsis) {
syntax_warning(prev, "'..' for ranges has now been deprecated, prefer '..='");
syntax_error(prev, "'..' for ranges are not allowed, did you mean '..<' or '..='?");
f->tokens[f->curr_token_index].flags |= TokenFlag_Replace;
}