This commit is contained in:
parent
b45449421e
commit
091c9339f7
1 changed files with 5 additions and 1 deletions
|
@ -41,6 +41,7 @@ BEGIN {
|
||||||
RE_VARIABLE = RE_BEGIN RE_VAR RE_SET RE_END
|
RE_VARIABLE = RE_BEGIN RE_VAR RE_SET RE_END
|
||||||
|
|
||||||
alias = 0
|
alias = 0
|
||||||
|
command = 0
|
||||||
f = ""
|
f = ""
|
||||||
reset()
|
reset()
|
||||||
module = 0
|
module = 0
|
||||||
|
@ -97,7 +98,7 @@ BEGIN {
|
||||||
} else if (match($0, RE_COMMAND, m)) {
|
} else if (match($0, RE_COMMAND, m)) {
|
||||||
append("/ " m[1])
|
append("/ " m[1])
|
||||||
if (m[1] == target) {
|
if (m[1] == target) {
|
||||||
alias = 1
|
command = 1
|
||||||
}
|
}
|
||||||
# set
|
# set
|
||||||
} else if (match($0, RE_CONSTANT, m)) {
|
} else if (match($0, RE_CONSTANT, m)) {
|
||||||
|
@ -124,6 +125,9 @@ BEGIN {
|
||||||
if (alias) {
|
if (alias) {
|
||||||
print "= " target
|
print "= " target
|
||||||
output(f, "function")
|
output(f, "function")
|
||||||
|
} else if (command) {
|
||||||
|
print "/ " target
|
||||||
|
output(f, "function")
|
||||||
} else if (f == target) {
|
} else if (f == target) {
|
||||||
output(f, "function")
|
output(f, "function")
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue