diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-27 20:00:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-27 20:00:57 +0800 |
commit | 0af81c0ae6a05cffe55acf4ee8fea0d4771273c3 (patch) | |
tree | 3d0d3aa0ad5b3ff3536887bc69b5c66b0643ce3b /script/parser | |
parent | e3fbbd8ce94a9b92e6bb135b05d35d90c90386b5 (diff) | |
download | lua-language-server-0af81c0ae6a05cffe55acf4ee8fea0d4771273c3.zip |
update
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/luadoc.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 6f35052b..34705072 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1183,6 +1183,10 @@ local function bindClassAndFields(binded) local class for _, doc in ipairs(binded) do if doc.type == 'doc.class' then + -- 多个class连续写在一起,只有最后一个class可以绑定source + if class then + class.bindSources = nil + end class = doc elseif doc.type == 'doc.field' then class.fields[#class.fields+1] = doc |