lexer: use Str_from_buf
here 2
This commit is contained in:
parent
3d8c20f5c3
commit
af60de0d62
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue