arrays/in
This commit is contained in:
parent
967e17e224
commit
bcafe7d44f
1 changed files with 6 additions and 6 deletions
12
sh/code.awk
12
sh/code.awk
|
@ -77,9 +77,9 @@ BEGIN {
|
||||||
if (match($0, RE_ALIAS, m)) {
|
if (match($0, RE_ALIAS, m)) {
|
||||||
append(m[1])
|
append(m[1])
|
||||||
} else if (match($0, RE_FUNCTION, m)) {
|
} else if (match($0, RE_FUNCTION, m)) {
|
||||||
n = split(doc, array, "\n")
|
split(doc, array, "\n")
|
||||||
for (i = 1; i<= n; i++) {
|
for (item in array) {
|
||||||
print array[i] " " m[1]
|
print item " " m[1]
|
||||||
}
|
}
|
||||||
reset()
|
reset()
|
||||||
} else {
|
} else {
|
||||||
|
@ -89,9 +89,9 @@ BEGIN {
|
||||||
if (match($0, RE_COMMAND, m)) {
|
if (match($0, RE_COMMAND, m)) {
|
||||||
append(m[1])
|
append(m[1])
|
||||||
} else if (match($0, RE_FUNCTION, m)) {
|
} else if (match($0, RE_FUNCTION, m)) {
|
||||||
n = split(doc, array, "\n")
|
split(doc, array, "\n")
|
||||||
for (i = 1; i<= n; i++) {
|
for (item in array) {
|
||||||
print array[i] " " m[1]
|
print item " " m[1]
|
||||||
}
|
}
|
||||||
reset()
|
reset()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue