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_match = "function"
|
||||||
current_function = strip_function(string)
|
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
|
# other
|
||||||
} else {
|
} else {
|
||||||
if (module == target) {
|
if (module == target) {
|
||||||
|
@ -185,16 +193,8 @@ function parse(string) {
|
||||||
if (action == "doc") {
|
if (action == "doc") {
|
||||||
parse($0)
|
parse($0)
|
||||||
|
|
||||||
# doc
|
|
||||||
if (match($0, RE_DOC)) {
|
|
||||||
if (current_function) {
|
|
||||||
doc_append($0)
|
|
||||||
} else {
|
|
||||||
doc_append(extract($0, "doc"))
|
|
||||||
}
|
|
||||||
|
|
||||||
# constant
|
# constant
|
||||||
} else if (current_match == "constant") {
|
if (current_match == "constant") {
|
||||||
if (constant == target) {
|
if (constant == target) {
|
||||||
doc_output(constant, "constant")
|
doc_output(constant, "constant")
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue