diff options
Diffstat (limited to 'Data/Libraries/LDoc/tests/styles/func.lua')
-rw-r--r-- | Data/Libraries/LDoc/tests/styles/func.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Data/Libraries/LDoc/tests/styles/func.lua b/Data/Libraries/LDoc/tests/styles/func.lua new file mode 100644 index 0000000..ef05845 --- /dev/null +++ b/Data/Libraries/LDoc/tests/styles/func.lua @@ -0,0 +1,15 @@ +------------ +-- Get length of string. +-- A (silly) module which returns a single function +-- +-- @module func +-- @string some text +-- @param opts multibyte encoding options +-- @string opts.charset encoding used +-- @bool opts.strict be very pedantic +-- @bool verbose tell the world about everything +-- @return its length +return function(s,opts,verbose) + return #s +end + |