mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 17:34:34 +00:00
Deprecate a..b based ranges in favour of ..=
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user