lexer: remove this useless code
This commit is contained in:
parent
6b26b25567
commit
628d656207
1 changed files with 0 additions and 7 deletions
|
@ -524,13 +524,6 @@ void
|
||||||
lex_backup(LexState *ls, LexToken token)
|
lex_backup(LexState *ls, LexToken token)
|
||||||
{
|
{
|
||||||
arrput(ls->backlist, 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. */
|
/* Checks if `t` token type is equal to `exp_tok`. This does not eat any token. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue