- Updated DocsGenerator to support run code and item tables
- Updated Table to support new Collection System (could break things, sorry) - Updated Tree to support new Collection System - Added experimental ScrollFrame - Updated Menu to support Collection System
This commit is contained in:
@@ -7,7 +7,36 @@ function helper.applyAnnotations(annotations, target, handlers)
|
||||
|
||||
local tag, args = ann:match("^%-%-%-?%s*(@%S+)%s*(.*)")
|
||||
if tag then
|
||||
if args == ">" then
|
||||
if args and args:match("^%s*%[%[") then
|
||||
local blockContent = args:gsub("^%s*%[%[%s*", "")
|
||||
|
||||
if blockContent:match("%]%]%s*$") then
|
||||
args = blockContent:gsub("%]%]%s*$", "")
|
||||
else
|
||||
local multiArgs = {}
|
||||
if blockContent ~= "" then
|
||||
table.insert(multiArgs, blockContent)
|
||||
end
|
||||
i = i + 1
|
||||
|
||||
while i <= #annotations do
|
||||
local nextAnn = annotations[i]
|
||||
local content = nextAnn:match("^%-%-%-?%s*(.*)") or nextAnn
|
||||
|
||||
if content:match("%]%]%s*$") then
|
||||
local finalContent = content:gsub("%]%]%s*$", "")
|
||||
if finalContent ~= "" then
|
||||
table.insert(multiArgs, finalContent)
|
||||
end
|
||||
break
|
||||
else
|
||||
table.insert(multiArgs, content)
|
||||
end
|
||||
i = i + 1
|
||||
end
|
||||
args = table.concat(multiArgs, "\n")
|
||||
end
|
||||
elseif args == ">" then
|
||||
local multiArgs = ""
|
||||
i = i + 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user