Yeah, that is a inducing way to document stuff.
Just get rid of the variable:
--------------------------------------------------------------------------------
-- renoise.SongPos
--------------------------------------------------------------------------------
-------- properties
-- Position in the pattern sequence.
sequence
-> [number]
-- Pos in the pattern at the given pattern sequence.
line
-> [number]
It won’t get clearer than this…
Or, if you insist on putting the reference to the object in there, then do it like this:
--------------------------------------------------------------------------------
-- renoise.SongPos
--------------------------------------------------------------------------------
-------- properties
-- Position in the pattern sequence.
renoise.SongPos().sequence
-> [number]
-- Pos in the pattern at the given pattern sequence.
renoise.SongPos().line
-> [number]
That makes more sense.
I also find the whole formatting very hard to read, but that is probably mainly due to Lua not having doctoring support in combination with a proper docstring to html reference tool.
I’ve not tried this yet, but maybe useful: http://keplerproject.github.io/luadoc/
The reason I ran into this SongPos thing myself is because I find the docs just too clunky. Way back when I used to a lot of development with Microsoft tools, and the docs were almost always outstanding. Thinking about the various substructions of App, Document, Song, Track etc. reminded me of the docs for the Word object model. The dev docs provided a nice tree diagram, with clickable sections.
What I’ve been doing is reformatting the Renoise Lua docs into something of that ilk. By hand, which is tedious, until I can think out a good way to automate it. What I’m shooting for is at least to have a single file with assorted indentation to make it easier to see what things are related. For example, given a Track instance, what can I do with it.
The upside to the manual approach is I’m actually seeing, even if perhaps quickly, all the things available. But some thing, like SongPos, are confusing to follow.