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/simple/simple_alias.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Data/Libraries/LDoc/tests/simple/simple_alias.lua (limited to 'Data/Libraries/LDoc/tests/simple/simple_alias.lua') diff --git a/Data/Libraries/LDoc/tests/simple/simple_alias.lua b/Data/Libraries/LDoc/tests/simple/simple_alias.lua new file mode 100644 index 0000000..72d17af --- /dev/null +++ b/Data/Libraries/LDoc/tests/simple/simple_alias.lua @@ -0,0 +1,16 @@ +------------ +-- A new-style module. +-- Shows how @alias can be used to tell ldoc that a given name +-- is a shorthand for the full module name +-- @alias M + +local simple_alias = {} +local M = simple_alias + +--- return the answer. And complete the description +function M.answer() + return 42 +end + +return simple_alias + -- cgit v1.1-26-g67d0