From 77ac95b9985f5669d6659bfb54728786d28c2ef0 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 20 Jul 2020 09:42:30 +0800 Subject: *misc --- src/lua51/llex.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lua51/llex.c') diff --git a/src/lua51/llex.c b/src/lua51/llex.c index 88c6790..fe4e3ee 100644 --- a/src/lua51/llex.c +++ b/src/lua51/llex.c @@ -33,6 +33,7 @@ #define currIsNewline(ls) (ls->current == '\n' || ls->current == '\r') +//c 对应RESERVED中的枚举, tokens /* ORDER RESERVED */ const char *const luaX_tokens [] = { "and", "break", "do", "else", "elseif", @@ -61,12 +62,15 @@ static void save (LexState *ls, int c) { } +//c 设置保留字 void luaX_init (lua_State *L) { int i; for (i=0; itsv.reserved = cast_byte(i+1); /* reserved word */ } } -- cgit v1.1-26-g67d0