diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-03-13 17:11:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-03-13 17:11:41 +0800 |
commit | a5ceb34550ad4432376364dfdd0521d86fb329b0 (patch) | |
tree | ebf89fb6c14c756e0cee94b50c6a1bfee8921507 /script/emmy | |
parent | 8caef32d3d3809266638f2f2df74549942dc36fd (diff) | |
download | lua-language-server-a5ceb34550ad4432376364dfdd0521d86fb329b0.zip |
fix #136
Diffstat (limited to 'script/emmy')
-rw-r--r-- | script/emmy/type.lua | 6 |
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 |