This commit is contained in:
Marc Beninca 2025-08-02 19:54:43 +02:00
parent 1567b1b863
commit 5d05a75a8d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -162,6 +162,14 @@ function parse(string) {
current_match = "function"
current_function = strip_function(string)
# doc
} else if (match(string, RE_DOC)) {
if (current_function) {
doc_append(string)
} else {
doc_append(strip_first(string, "# "))
}
# other
} else {
if (module == target) {
@ -185,16 +193,8 @@ function parse(string) {
if (action == "doc") {
parse($0)
# doc
if (match($0, RE_DOC)) {
if (current_function) {
doc_append($0)
} else {
doc_append(extract($0, "doc"))
}
# constant
} else if (current_match == "constant") {
if (current_match == "constant") {
if (constant == target) {
doc_output(constant, "constant")
} else {