mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-06 02:34:05 +00:00
Optimize rune_is_* procedures for tokenizer
This commit is contained in:
@@ -937,8 +937,10 @@ Token tokenizer_get_token(Tokenizer *t) {
|
||||
}
|
||||
|
||||
Token token = {};
|
||||
token.string = {t->curr, 1};
|
||||
token.pos.file = t->fullpath;
|
||||
token.string.text = t->curr;
|
||||
token.string.len = 1;
|
||||
token.pos.file.text = t->fullpath.text;
|
||||
token.pos.file.len = t->fullpath.len;
|
||||
token.pos.line = t->line_count;
|
||||
token.pos.offset = t->curr - t->start;
|
||||
token.pos.column = t->curr - t->line + 1;
|
||||
|
||||
Reference in New Issue
Block a user