summaryrefslogtreecommitdiff
path: root/locale/zh-cn
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-25 01:28:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-25 01:28:17 +0800
commit8f2dac8ba32271e45061128070063e0ddd0d73c4 (patch)
tree38714d88cb83e1290bb19c55c259653a25e831dd /locale/zh-cn
parente3edc5d1880a392e065a71926b6f8ff113ea300c (diff)
downloadlua-language-server-8f2dac8ba32271e45061128070063e0ddd0d73c4.zip
add `doc.privateName` and `doc.protectedName`
#1316
Diffstat (limited to 'locale/zh-cn')
-rw-r--r--locale/zh-cn/setting.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua
index 93bdc7ff..3f57f995 100644
--- a/locale/zh-cn/setting.lua
+++ b/locale/zh-cn/setting.lua
@@ -294,6 +294,10 @@ config.type.weakNilCheck =
此设置为 `false` 时,`numer|nil` 类型无法赋给 `number` 类型;为 `true` 是则可以。
]]
+config.doc.privateName =
+'将特定名称的字段视为私有,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 是私有字段,只能在定义所在的类中访问。'
+config.doc.protectedName =
+'将特定名称的字段视为受保护,例如 `m_*` 意味着 `XXX.m_id` 与 `XXX.m_type` 是受保护的字段,只能在定义所在的类极其子类中访问。'
config.diagnostics['unused-local'] =
'未使用的局部变量'
config.diagnostics['unused-function'] =