Deprecate a..b based ranges in favour of ..=

This commit is contained in:
gingerBill
2022-06-01 11:08:19 +01:00
parent 487bd3d942
commit ba5f7c4e2a
3 changed files with 5 additions and 4 deletions

View File

@@ -1428,6 +1428,7 @@ Token expect_operator(AstFile *f) {
LIT(p));
}
if (f->curr_token.kind == Token_Ellipsis) {
syntax_warning(f->curr_token, "'..' for ranges has now be deprecated, prefer '..='");
f->tokens[f->curr_token_index].flags |= TokenFlag_Replace;
}