diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-10-20 15:40:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-10-20 15:40:50 +0800 |
commit | 6897e265fef6b0a43f5f2a6355fd0ef300b72692 (patch) | |
tree | 96cd5a99dbd87a406faaa0aaaf72644cd5f51c16 /test/completion | |
parent | 437bae522a28cd0def7427edb0484d56e4834c7b (diff) | |
download | lua-language-server-6897e265fef6b0a43f5f2a6355fd0ef300b72692.zip |
fix #1642
Diffstat (limited to 'test/completion')
-rw-r--r-- | test/completion/common.lua | 31 |
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) |