aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-05-13 18:15:29 +0100
committergingerBill <bill@gingerbill.org>2024-05-13 18:15:29 +0100
commit0cf9dcd31441a56856a60e4f73db4b005a1407ee (patch)
tree1aae1e9352585a9ae160ddfbdce2ee1600e423d2 /src
parent8fa20fb875849774942117af3a23cb676a3fd8d7 (diff)
Make `..` ranges a complete error rather than a warning now.
This should have been an error years ago.
Diffstat (limited to 'src')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 66e175765..e296e6935 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -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;
}