added classes.lua to config.ld example in tests/

This commit is contained in:
steve donovan 2012-03-06 10:41:19 +02:00
parent 536ee894d2
commit 20ddca927d
4 changed files with 31 additions and 3 deletions

View File

@ -171,8 +171,6 @@ local function parse_file(fname,lang, package)
end
end
-- if not t then break end -- no more file!
if t == 'space' then t,v = tnext(tok) end
local item_follows, tags, is_local, case

25
tests/classes.lua Normal file
View File

@ -0,0 +1,25 @@
----------------------
-- a module containing some classes.
-- @module classes
local _M = {}
---- a useful class.
-- @type Bonzo
_M.Bonzo = class()
--- a method.
-- function one
function Bonzo:one()
end
--- a metamethod
-- function __tostring
function Bonzo:__tostring()
end
return M

View File

@ -1,5 +1,6 @@
format='markdown'
file = 'types.lua'
file = {'types.lua','classes.lua'}
--file = 'classes.lua'
topics = {'one.md','two.md'}
tparam_alias 'string'
tparam_alias ('int','number')

View File

@ -21,3 +21,7 @@ _M.mydata = {
one = 1, -- alpha
two = 2, -- beta
}