From 3e4bb302da82d223079faf9dabb53d627f0cc488 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Wed, 23 Dec 2015 14:19:21 +0100 Subject: [PATCH] Avoid return documentation slipping into preceding function documenation --- ldoc/doc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldoc/doc.lua b/ldoc/doc.lua index 05474e8..affbf8b 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