lexer: use Str_from_buf here 2

This commit is contained in:
tocariimaa 2025-01-13 14:52:14 -03:00
parent 3d8c20f5c3
commit af60de0d62

View file

@ -248,7 +248,7 @@ identifier(LexState *ls)
backup(ls, 1); backup(ls, 1);
token.id = T_IDENT; token.id = T_IDENT;
token.ident = (Str){intern_identifier(ls, ident_buf), i}; token.ident = Str_from_buf(intern_identifier(ls, ident_buf), i);
token.len = i; token.len = i;
return token; return token;
} }