Skip to content

Commit 8cc9048

Browse files
committed
DOC: generate from json format
1 parent 25c0221 commit 8cc9048

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

documentation/mkref.bas

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ sub mk_help(byref in_map)
7474
end
7575

7676
sub mk_text_reference(byref in_map)
77-
local i, row, group, type, keyword, syntax, brief, comments
77+
local i, row, group, type, keyword, syntax, brief, comments, counter
7878
local in_map_len = len(in_map) - 1
7979
local end_block = "<!-- end heading block -->"
8080

@@ -95,15 +95,17 @@ sub mk_text_reference(byref in_map)
9595
?
9696
?
9797

98+
counter = 0
9899
for i = 0 to in_map_len
99100
row = in_map(i).body_value
100101
group = get_field(row, "group=", false)
101102
type = get_field(row, "type=", false)
102103
keyword = get_field(row, "keyword=", false)
103104
syntax = get_field(row, "syntax=", false)
104105
brief = get_field(row, "brief=", false)
106+
counter++
105107

106-
? (i+1) + ". (" + group + ") " + keyword
108+
? counter + ". (" + group + ") " + keyword
107109
?
108110
? syntax
109111
?

0 commit comments

Comments
 (0)