diff options
author | chai <chaifix@163.com> | 2021-10-30 11:42:13 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-30 11:42:13 +0800 |
commit | 53364ddc2e09362cb17432abf4fb598557554a9f (patch) | |
tree | 8d2deafc82aceb13db31938a2aecc70927fc1457 /Data/Libraries/LDoc/tests/underscore.lua | |
parent | 42ec7286b2d36a9ba22925f816a17cb1cc2aa5ce (diff) |
+ LDoc
Diffstat (limited to 'Data/Libraries/LDoc/tests/underscore.lua')
-rw-r--r-- | Data/Libraries/LDoc/tests/underscore.lua | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Data/Libraries/LDoc/tests/underscore.lua b/Data/Libraries/LDoc/tests/underscore.lua new file mode 100644 index 0000000..442a778 --- /dev/null +++ b/Data/Libraries/LDoc/tests/underscore.lua @@ -0,0 +1,39 @@ +--[[----------- + testing underscores and Markdown pre-formatting. + + A list may immediately follow a line, if it is indented. Necessary lines + will also be inserted after resuming current indentation. + - a list + - sublist (note the needed indentation for Markdown to recognize this) + - more + * of items + more than one line + - indeed + can keep going +Inline _see references_: look at @{_ONE_} and @{table.concat}. +Indented code blocks may also follow immediately. + function test(a,b) + return three(a,b) + end + @module underscore +]] + +---------- +-- A function. +-- Can also use @{_TWO_ |second function} +function _ONE_() end + +----------- +-- another function +-- @see string.format +function _TWO_() end + +------ +-- a longer summary. +-- @param a +-- @param b +-- @return one +-- - one-1 +-- - one-2 +-- @return two +function three(a,b) end |