diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-14 14:44:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 14:44:10 +0800 |
commit | 6172b5df67ca79abcc54a88121f3758a112f3a9d (patch) | |
tree | 5e527d38f103466dbd4825ff957977e4aad89b95 /locale | |
parent | d01289e9bf88270e593e48f9a454097592be974b (diff) | |
parent | f05b8a9b522989e83f28ce0511d5468d7300b40d (diff) | |
download | lua-language-server-6172b5df67ca79abcc54a88121f3758a112f3a9d.zip |
Merge pull request #296 from uhziel/diagnostic-undefined-field
添加检查"未定义的 field"Diagnostic undefined field
Diffstat (limited to 'locale')
-rw-r--r-- | locale/en-us/script.lua | 1 | ||||
-rw-r--r-- | locale/zh-cn/script.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index 5bf8597d..20c24c90 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -2,6 +2,7 @@ DIAG_LINE_ONLY_SPACE = 'Line with spaces only.' DIAG_LINE_POST_SPACE = 'Line with postspace.' DIAG_UNUSED_LOCAL = 'Unused local `{}`.' DIAG_UNDEF_GLOBAL = 'Undefined global `{}`.' +DIAG_UNDEF_FIELD = 'Undefined field `{}`.' DIAG_UNDEF_ENV_CHILD = 'Undefined variable `{}` (overloaded `_ENV` ).' DIAG_UNDEF_FENV_CHILD = 'Undefined variable `{}` (inside module).' DIAG_GLOBAL_IN_NIL_ENV = 'Invalid global (`_ENV` is `nil`).' diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index c4fd8a7a..3dda7699 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -2,6 +2,7 @@ DIAG_LINE_ONLY_SPACE = '只有空格的空行。' DIAG_LINE_POST_SPACE = '后置空格。' DIAG_UNUSED_LOCAL = '未使用的局部变量 `{}`。' DIAG_UNDEF_GLOBAL = '未定义的全局变量 `{}`。' +DIAG_UNDEF_FIELD = '未定义的 field `{}`。' DIAG_UNDEF_ENV_CHILD = '未定义的变量 `{}`(重载了 `_ENV` )。' DIAG_UNDEF_FENV_CHILD = '未定义的变量 `{}`(处于模块中)。' DIAG_GLOBAL_IN_NIL_ENV = '不能使用全局变量(`_ENV`被置为了`nil`)。' |