From 53364ddc2e09362cb17432abf4fb598557554a9f Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 30 Oct 2021 11:42:13 +0800 Subject: + LDoc --- Data/Libraries/LDoc/tests/styles/opt.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Data/Libraries/LDoc/tests/styles/opt.lua (limited to 'Data/Libraries/LDoc/tests/styles/opt.lua') diff --git a/Data/Libraries/LDoc/tests/styles/opt.lua b/Data/Libraries/LDoc/tests/styles/opt.lua new file mode 100644 index 0000000..6cdba2d --- /dev/null +++ b/Data/Libraries/LDoc/tests/styles/opt.lua @@ -0,0 +1,21 @@ +------------ +-- ### Functions with options and custom tags. +-- (use `ldoc -c opt.ld opt.lua` for converting.) +-- +-- @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 use tparam aliases in table defns +-- @string name +-- @int[opt=0] age +-- @table person2 + -- cgit v1.1-26-g67d0