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
|
||||
|
||||
alias = 0
|
||||
command = 0
|
||||
f = ""
|
||||
reset()
|
||||
module = 0
|
||||
|
@ -97,7 +98,7 @@ BEGIN {
|
|||
} else if (match($0, RE_COMMAND, m)) {
|
||||
append("/ " m[1])
|
||||
if (m[1] == target) {
|
||||
alias = 1
|
||||
command = 1
|
||||
}
|
||||
# set
|
||||
} else if (match($0, RE_CONSTANT, m)) {
|
||||
|
@ -124,6 +125,9 @@ BEGIN {
|
|||
if (alias) {
|
||||
print "= " target
|
||||
output(f, "function")
|
||||
} else if (command) {
|
||||
print "/ " target
|
||||
output(f, "function")
|
||||
} else if (f == target) {
|
||||
output(f, "function")
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue