aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-06-01 11:08:19 +0100
committergingerBill <bill@gingerbill.org>2022-06-01 11:08:19 +0100
commitba5f7c4e2af5c82c220b7e1796fde2f026ce4208 (patch)
treea91367884bb05eb3f5fe7a476b5e0b5ece497f28 /src
parent487bd3d9424479ffe3fb2638077232dbccafa0cf (diff)
Deprecate `a..b` based ranges in favour of `..=`dev-2022-06
Diffstat (limited to 'src')
-rw-r--r--src/parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 5280fd4b0..b58e3c320 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -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;
}