diff --git a/ldoc/doc.lua b/ldoc/doc.lua index 6431fe5..9086c75 100644 --- a/ldoc/doc.lua +++ b/ldoc/doc.lua @@ -141,7 +141,7 @@ function doc.expand_annotation_item (tags, last_item) tags:add('name',item_name..'-'..tag..acount) acount = acount + 1 return true - elseif tag == 'return' then + elseif tags.error and tag == 'return' then last_item:set_tag(tag,value) end end