mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Make .. ranges a complete error rather than a warning now.
This should have been an error years ago.
This commit is contained in:
+1
-1
@@ -1572,7 +1572,7 @@ gb_internal Token expect_operator(AstFile *f) {
|
|||||||
LIT(p));
|
LIT(p));
|
||||||
}
|
}
|
||||||
if (prev.kind == Token_Ellipsis) {
|
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;
|
f->tokens[f->curr_token_index].flags |= TokenFlag_Replace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user