summaryrefslogtreecommitdiff
path: root/test-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-03 19:58:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-03 19:58:03 +0800
commitf35ed0a44400f422822aeb882784592db5a48633 (patch)
treeb61560b2d9774989175d3707edd64f17143ecb66 /test-beta
parent03b763eb9aab5eebf1ac11481794e95a2e2af9ef (diff)
downloadlua-language-server-f35ed0a44400f422822aeb882784592db5a48633.zip
支持 ---| 换行
Diffstat (limited to 'test-beta')
-rw-r--r--test-beta/hover/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-beta/hover/init.lua b/test-beta/hover/init.lua
index 2d550fea..ef48535d 100644
--- a/test-beta/hover/init.lua
+++ b/test-beta/hover/init.lua
@@ -1293,3 +1293,13 @@ local <?t?>
[[
local t: string|'enum1'|'enum2'
]]
+
+TEST [[
+---@type string
+---| "'enum1'"
+---| "'enum2'"
+local <?t?>
+]]
+[[
+local t: string|'enum1'|'enum2'
+]]