Add token literals to the lua parser

This commit is contained in:
2026-02-19 00:11:44 -05:00
parent 1fd06f0628
commit 7039c43065
8 changed files with 58 additions and 3 deletions

View File

@@ -947,6 +947,10 @@ static void simpleexp (LexState *ls, expdesc *v) {
codestring(ls, v, ls->t.seminfo.ts);
break;
}
case TK_TOKEN: {
init_exp(v, VK, luaK_lightuserdataK(ls->fs, ls->t.seminfo.p));
break;
}
case TK_NIL: {
init_exp(v, VNIL, 0);
break;