lexer: remove this useless code

This commit is contained in:
tocariimaa 2025-01-12 23:50:41 -03:00
parent 6b26b25567
commit 628d656207

View file

@ -524,13 +524,6 @@ void
lex_backup(LexState *ls, LexToken token)
{
arrput(ls->backlist, token);
i64 col = ls->cur_loc.column - token.len;
if (col < 1) {
if (ls->cur_loc.line > 1)
--ls->cur_loc.line;
} else {
ls->cur_loc.column = col;
}
}
/* Checks if `t` token type is equal to `exp_tok`. This does not eat any token. */