2 # Create an asciidoc paragraph and index entry
3 # Sec Name Index Explanation
4 match($0, com"(.*) PARA (.*); (.*); *(.*)", p) {
5 append("index", tolower(p[3]), "xref:"p[3]"["p[2]"]:: "p[4])
6 append(p[1],"","[["p[3]"]]")
7 append(p[1],"","."p[2])
11 # Create an asciidoc headline and index entry
12 # Sec Typ Name Index Explanation
13 match($0, com"(.*) HEAD(.) (.*); (.*); *(.*)", p) {
14 append("index", tolower(p[4]), "xref:"p[4]"["p[3]"]:: "p[5])
15 append(p[1],"","[["p[4]"]]")
17 append(p[1],"",gensub(/./, p[2], "g", p[3]))