summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/completion/common.lua31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/completion/common.lua b/test/completion/common.lua
index c63ffa7a..38104d41 100644
--- a/test/completion/common.lua
+++ b/test/completion/common.lua
@@ -1107,6 +1107,37 @@ z<??>
config.set(nil, 'Lua.runtime.version', 'Lua 5.4')
TEST [[
+中文字段 = 1
+
+中文<??>
+]]
+{
+ {
+ label = '中文字段',
+ kind = define.CompletionItemKind.Enum,
+ textEdit = {
+ start = 20000,
+ finish = 20006,
+ newText = '_ENV["中文字段"]',
+ },
+ },
+}
+
+config.set(nil, 'Lua.runtime.unicodeName', true)
+TEST [[
+中文字段 = 1
+
+中文<??>
+]]
+{
+ {
+ label = '中文字段',
+ kind = define.CompletionItemKind.Enum,
+ },
+}
+config.set(nil, 'Lua.runtime.unicodeName', false)
+
+TEST [[
io.close(1, <??>)
]]
(nil)