summaryrefslogtreecommitdiff
path: root/script/emmy
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-03-13 17:11:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-03-13 17:11:41 +0800
commita5ceb34550ad4432376364dfdd0521d86fb329b0 (patch)
treeebf89fb6c14c756e0cee94b50c6a1bfee8921507 /script/emmy
parent8caef32d3d3809266638f2f2df74549942dc36fd (diff)
downloadlua-language-server-a5ceb34550ad4432376364dfdd0521d86fb329b0.zip
fix #136
Diffstat (limited to 'script/emmy')
-rw-r--r--script/emmy/type.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/script/emmy/type.lua b/script/emmy/type.lua
index b7e451b2..8977cf2d 100644
--- a/script/emmy/type.lua
+++ b/script/emmy/type.lua
@@ -3,7 +3,11 @@ local listMgr = require 'vm.list'
local function buildName(source)
local names = {}
for i, type in ipairs(source) do
- names[i] = type[1]
+ if type.type == 'emmyName' then
+ names[i] = type[1]
+ elseif type.type == 'emmyArrayType' then
+ names[i] = type[1][1]..'[]'
+ end
end
return table.concat(names, '|')
end