aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-08-03 13:14:09 +0100
committergingerBill <bill@gingerbill.org>2023-08-03 13:14:09 +0100
commitb495a302b016d37a19a95cac56dc7f67fdc4ba73 (patch)
tree8fb72c3f264a61ce442c0a71e84483b31389ca6e /src/tokenizer.cpp
parentc39a3603720917d6970026e5c0595d468ea9b372 (diff)
parent9453b2387b2cc7c473547997703c305e7982f5e4 (diff)
Merge branch 'master' into tilde
Diffstat (limited to 'src/tokenizer.cpp')
-rw-r--r--src/tokenizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp
index 17a396b9f..ad7aa81de 100644
--- a/src/tokenizer.cpp
+++ b/src/tokenizer.cpp
@@ -696,8 +696,8 @@ gb_internal void tokenizer_get_token(Tokenizer *t, Token *token, int repeat=0) {
if (entry->kind != Token_Invalid && entry->hash == hash) {
if (str_eq(entry->text, token->string)) {
token->kind = entry->kind;
- if (token->kind == Token_not_in && entry->text == "notin") {
- syntax_warning(*token, "'notin' is deprecated in favour of 'not_in'");
+ if (token->kind == Token_not_in && entry->text.len == 5) {
+ syntax_error(*token, "Did you mean 'not_in'?");
}
}
}