1

Fix wrapping

This commit is contained in:
Alex Yatskov 2024-04-26 18:09:02 -07:00
parent 52d4710ded
commit 7077cee692

View File

@ -141,7 +141,7 @@ function BraceStack:empty()
end
function BraceStack:top()
return #self.stack[#self.stack]
return self.stack[#self.stack]
end
--
@ -240,6 +240,7 @@ end
function Param:flush()
self.text = self.text:match('^%s*(.-)%s*$')
return #self.text > 0
end
--
@ -260,8 +261,9 @@ end
function ParamList:flush()
if self.current then
self.current:flush()
if self.current:flush() then
table.insert(self.parsed, self.current)
end
self.current = nil
end
end