diff options
author | AndreaWalchshoferSCCH <122894794+AndreaWalchshoferSCCH@users.noreply.github.com> | 2023-04-04 11:02:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 11:02:59 +0200 |
commit | 27cfa2e23648b015a94fab6e0938ec42a5a040e5 (patch) | |
tree | e247b1aac92882c72e5c694eb8090f883d43c76c /locale/zh-cn/script.lua | |
parent | f85e039b9e9369fc2936e899c81056837f04403e (diff) | |
download | lua-language-server-27cfa2e23648b015a94fab6e0938ec42a5a040e5.zip |
Add diagnostic to enforce lowercase local element names (#6)
- diagnostic `uppercase-local` in group `conventions`, disabled by
default
- isolated unit tests for diagnostic
Diffstat (limited to 'locale/zh-cn/script.lua')
-rw-r--r-- | locale/zh-cn/script.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index f6f639ea..da817698 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -150,8 +150,10 @@ DIAG_INVISIBLE_PROTECTED = '字段 `{field}` 受到保护,只能在 `{class}` 类极其子类中才能访问。' DIAG_INVISIBLE_PACKAGE = '字段 `{field}` 只能在相同的文件 `{uri}` 中才能访问。' -DIAG_GLOBAL_ELEMENT = -- TODO: need translate! +DIAG_GLOBAL_ELEMENT = -- TODO: need translate! 'Element is global.' +DIAG_UPPERCASE_LOCAL = -- TODO: need translate! +'Local element `{}` must start with lowercase letter' MWS_NOT_SUPPORT = '{} 目前还不支持多工作目录,我可能需要重启才能支持新的工作目录...' |