Add token literals to the lua parser
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user