tried to access modifiers when not present
This commit is contained in:
parent
50b4e733eb
commit
3d8cdadc88
10
ldoc/doc.lua
10
ldoc/doc.lua
|
@ -323,11 +323,13 @@ function Item:finish()
|
||||||
local function acc(x) table.insert(buffer, x) end
|
local function acc(x) table.insert(buffer, x) end
|
||||||
for i = 1, #names do
|
for i = 1, #names do
|
||||||
local m = modifiers[i]
|
local m = modifiers[i]
|
||||||
if not m.optchain then
|
if m then
|
||||||
acc ((']'):rep(npending))
|
if not m.optchain then
|
||||||
npending=0
|
acc ((']'):rep(npending))
|
||||||
|
npending=0
|
||||||
|
end
|
||||||
|
if m.opt or m.optchain then acc('['); npending=npending+1 end
|
||||||
end
|
end
|
||||||
if m.opt or m.optchain then acc('['); npending=npending+1 end
|
|
||||||
if i>1 then acc (', ') end
|
if i>1 then acc (', ') end
|
||||||
acc(names[i])
|
acc(names[i])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue