doc
This commit is contained in:
parent
1567b1b863
commit
5d05a75a8d
1 changed files with 9 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue