mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix invalid rune literal reported twice
The tokenizer and the parser were reporting it in different positions. This way, they'll report in the same spot.
This commit is contained in:
+1
-2
@@ -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) {
|
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;
|
token->string.len = t->curr - token->string.text;
|
||||||
goto semicolon_check;
|
goto semicolon_check;
|
||||||
|
|||||||
Reference in New Issue
Block a user