diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-29 16:22:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-29 16:22:02 +0800 |
commit | 8b0c14300059fa949b6d8fe5d95305c8be5ccd60 (patch) | |
tree | f594756f9a25fcdfa0a5926f7e49c3be282d5d46 /server/locale | |
parent | 4b96bc247b4b345757e43bb54451b482d7bfd5bc (diff) | |
download | lua-language-server-8b0c14300059fa949b6d8fe5d95305c8be5ccd60.zip |
重载变量未定义的诊断
Diffstat (limited to 'server/locale')
-rw-r--r-- | server/locale/en-US/script.lni | 3 | ||||
-rw-r--r-- | server/locale/zh-CN/script.lni | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/server/locale/en-US/script.lni b/server/locale/en-US/script.lni index 65d5743e..b66e52c3 100644 --- a/server/locale/en-US/script.lni +++ b/server/locale/en-US/script.lni @@ -2,7 +2,8 @@ DIAG_LINE_ONLY_SPACE = 'Line with spaces only.' DIAG_LINE_POST_SPACE = 'Line with postspace.' DIAG_UNUSED_LOCAL = 'Unused local `{}`.' -DIAG_UNDEFINED_GLOBAL = 'Undefined global `{}`.' +DIAG_UNDEF_GLOBAL = 'Undefined global `{}`.' +DIAG_UNDEF_ENV_CHILD = 'Undefined variable `{}` (overloaded `_ENV` ).' DIAG_UNUSED_LABEL = 'Unused label `{}`.' DIAG_REDEFINED_LOCAL = 'Redefined local `{}`.' DIAG_PREVIOUS_CALL = 'Parsed as function call for the previous line. It may be necessary to add a `;` before.' diff --git a/server/locale/zh-CN/script.lni b/server/locale/zh-CN/script.lni index 0d9dc6cf..d3a18b36 100644 --- a/server/locale/zh-CN/script.lni +++ b/server/locale/zh-CN/script.lni @@ -2,7 +2,8 @@ DIAG_LINE_ONLY_SPACE = '只有空格的空行。' DIAG_LINE_POST_SPACE = '后置空格。' DIAG_UNUSED_LOCAL = '未使用的局部变量 `{}`。' -DIAG_UNDEFINED_GLOBAL = '未定义的全局变量 `{}`。' +DIAG_UNDEF_GLOBAL = '未定义的全局变量 `{}`。' +DIAG_UNDEF_ENV_CHILD = '未定义的变量 `{}`(重载了 `_ENV` )。' DIAG_UNUSED_LABEL = '未使用的标签 `{}`。' DIAG_REDEFINED_LOCAL = '重定义局部变量 `{}`。' DIAG_PREVIOUS_CALL = '解析为了上一行的函数调用。你可能需要在前面加一个 `;`。' |