diff options
| author | gingerBill <bill@gingerbill.org> | 2023-08-01 11:11:15 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-08-01 11:11:15 +0100 |
| commit | 69e1f42aedad0d1992e64989aac1d236bee3d4d9 (patch) | |
| tree | c2d26c92e0120cc97d14196fcb5e28fa9cd51133 /src/tokenizer.cpp | |
| parent | c35c58b023ec98aa7d42498b9ece68cf481f2c32 (diff) | |
Replace a lot of warnings with errors; remove deprecated stuff
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 4 |
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'?"); } } } |