From b5e02a655b627000c045d6bf655133a444f12704 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Fri, 11 Dec 2015 08:56:45 +0100 Subject: [PATCH] Allow "]" in description after tag modifiers --- ldoc/parse.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldoc/parse.lua b/ldoc/parse.lua index 0c40679..cb93b2e 100644 --- a/ldoc/parse.lua +++ b/ldoc/parse.lua @@ -22,7 +22,7 @@ local tnext, append = lexer.skipws, table.insert -- followed by the value, which may extend over several lines. local luadoc_tag = '^%s*@(%w+)' local luadoc_tag_value = luadoc_tag..'(.*)' -local luadoc_tag_mod_and_value = luadoc_tag..'%[(.*)%](.*)' +local luadoc_tag_mod_and_value = luadoc_tag..'%[([^%]]*)%](.*)' -- assumes that the doc comment consists of distinct tag lines local function parse_at_tags(text)