Skip to content

Commit 966f416

Browse files
committed
fix: We got this time
1 parent 69c7094 commit 966f416

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

ldoc.ltp

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,3 @@
1-
# do
2-
# local table = ldoc.import("table")
3-
# local ipairs = ldoc.import("ipairs")
4-
#
5-
# --- Sorts the modules provided by mods()
6-
# function sortedMods(mods)
7-
# local modules = {}
8-
#
9-
# -- Collect modules
10-
# for mod in mods() do
11-
# modules[#modules + 1] = mod
12-
# end
13-
#
14-
# -- Sort collected modules
15-
# table.sort(modules, function(a, b)
16-
# local a_name, b_name = display_name(a):lower(), display_name(b):lower()
17-
#
18-
# if a_name == "globals" then return true end
19-
# if b_name == "globals" then return false end
20-
#
21-
# return a_name < b_name
22-
# end)
23-
#
24-
# return ipairs(modules)
25-
# end
26-
# end
271
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
282
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
293
<html>
@@ -57,6 +31,31 @@
5731
# local iter = ldoc.modules.iter
5832
# local function M(txt,item) return ldoc.markup(txt,item,ldoc.plain) end
5933
# local nowrap = ldoc.wrap and '' or ' nowrap'
34+
#
35+
# local table = ldoc.import("table")
36+
# local ipairs = ldoc.import("ipairs")
37+
#
38+
# --- Sorts the modules provided by mods()
39+
# local function sortedMods(mods)
40+
# local modules = {}
41+
#
42+
# -- Collect modules
43+
# for mod in mods() do
44+
# modules[#modules + 1] = mod
45+
# end
46+
#
47+
# -- Sort collected modules
48+
# table.sort(modules, function(a, b)
49+
# local a_name, b_name = display_name(a):lower(), display_name(b):lower()
50+
#
51+
# if a_name == "globals" then return true end
52+
# if b_name == "globals" then return false end
53+
#
54+
# return a_name < b_name
55+
# end)
56+
#
57+
# return ipairs(modules)
58+
# end
6059

6160
<!-- Menu -->
6261

0 commit comments

Comments
 (0)