diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-04-28 15:22:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-28 15:22:05 +0100 |
| commit | 3b4169c903d374d0813d38694c7fc7523c2687e9 (patch) | |
| tree | 433c7cdf5ce870becbac4f15e82db4cd93b7a4e0 /src/tokenizer.cpp | |
| parent | 0eb97dba6e7c43f90b53f7f4ea2f2668cf7b7ff6 (diff) | |
| parent | 29987c20c058fe269ea0961205d12f51fc3e8326 (diff) | |
Merge pull request #3495 from Feoramund/fix-rune-literal-error-double-reporting
Fix invalid rune literal reported twice
Diffstat (limited to 'src/tokenizer.cpp')
| -rw-r--r-- | src/tokenizer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index fdff9224a..f7751d840 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -767,9 +767,8 @@ gb_internal void tokenizer_get_token(Tokenizer *t, Token *token, int repeat=0) { } } - // TODO(bill): Better Error Handling if (valid && n != 1) { - tokenizer_err(t, "Invalid rune literal"); + tokenizer_err(t, token->pos, "Invalid rune literal"); } token->string.len = t->curr - token->string.text; goto semicolon_check; |