File: opt.lua

package info (click to toggle)
lua-ldoc 1.4.3-5%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 912 kB
  • ctags: 748
  • sloc: ansic: 56; makefile: 55
file content (20 lines) | stat: -rw-r--r-- 364 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
------------
-- Functions with options and custom tags
--
-- @include opt.md

---- testing [opt]
-- @param one
-- @param[opt] two
-- @param[opt]three
-- @param[opt] four
-- @remark use with caution!
function use_opt (one,two,three,four)
end

--- an explicit table.
-- Can now use tparam aliases in table defns
-- @string name
-- @int[opt=0] age
-- @table person2