diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-08 14:33:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-08 14:33:01 +0800 |
commit | 8cc8789fbff920f631859e8f9eba75e2448aa8c1 (patch) | |
tree | 54c53f5beaf1c7036685119fe6db87097712f131 /script/parser | |
parent | 5f1f6a330b0c2f745ddc5549a532b8a0d3da890e (diff) | |
download | lua-language-server-8cc8789fbff920f631859e8f9eba75e2448aa8c1.zip |
update
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/luadoc.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 34705072..335c8f24 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1189,8 +1189,10 @@ local function bindClassAndFields(binded) end class = doc elseif doc.type == 'doc.field' then - class.fields[#class.fields+1] = doc - doc.class = class + if class then + class.fields[#class.fields+1] = doc + doc.class = class + end end end end |