diff options
-rw-r--r-- | server/libs/lua53/basic.lni | 3 | ||||
-rw-r--r-- | server/locale/en-US/libs/lua53/basic.lni | 3 | ||||
-rw-r--r-- | server/locale/zh-CN/libs/lua53/basic.lni | 3 | ||||
-rw-r--r-- | server/src/core/diagnostics.lua | 2 |
4 files changed, 10 insertions, 1 deletions
diff --git a/server/libs/lua53/basic.lni b/server/libs/lua53/basic.lni index 7c18cb6f..183ec5e8 100644 --- a/server/libs/lua53/basic.lni +++ b/server/libs/lua53/basic.lni @@ -1,6 +1,9 @@ <default> type = 'function' +[arg] +type = 'table' + [assert] [[.args]] name = 'v' diff --git a/server/locale/en-US/libs/lua53/basic.lni b/server/locale/en-US/libs/lua53/basic.lni index 48d2e248..13a1b5fe 100644 --- a/server/locale/en-US/libs/lua53/basic.lni +++ b/server/locale/en-US/libs/lua53/basic.lni @@ -1,3 +1,6 @@ +[arg] +description = 'Command-line arguments of Lua Standalone.' + [assert] description = 'Calls error if the value of its argument is false.' diff --git a/server/locale/zh-CN/libs/lua53/basic.lni b/server/locale/zh-CN/libs/lua53/basic.lni index 91f79e79..cc74721d 100644 --- a/server/locale/zh-CN/libs/lua53/basic.lni +++ b/server/locale/zh-CN/libs/lua53/basic.lni @@ -1,3 +1,6 @@ +[arg] +description = '独立版Lua的启动参数。' + [assert] description = '如果其参数 `v` 的值为假,它就调用 `error`。' diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index 7ab7e664..a8d38448 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -45,7 +45,7 @@ local function searchUndefinedGlobal(results, callback) goto NEXT_VAR end local lIndex = index:lower() - if lIndex == 'log' or lIndex == 'arg' or lIndex == '' then + if lIndex == 'log' or lIndex == '' then goto NEXT_VAR end if index:find '^_*%u' then |