match/module
All checks were successful
/ job (push) Successful in 2m59s

This commit is contained in:
Marc Beninca 2025-07-08 21:25:44 +02:00
parent 359726e070
commit b62edad33c
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -49,8 +49,8 @@ BEGIN {
f = "" f = ""
match_alias = 0 match_alias = 0
match_command = 0 match_command = 0
match_module = 0
reset() reset()
module = 0
} }
{ {
@ -154,7 +154,7 @@ BEGIN {
} else if (match($0, RE_MODULE, m)) { } else if (match($0, RE_MODULE, m)) {
reset() reset()
if (m[1] == target) { if (m[1] == target) {
module = 1 match_module = 1
} }
} else if (match($0, RE_FUNCTION, m)) { } else if (match($0, RE_FUNCTION, m)) {
f = m[1] f = m[1]
@ -172,7 +172,7 @@ BEGIN {
reset() reset()
} }
} else { } else {
if (module) { if (match_module) {
output(target, "module") output(target, "module")
} else { } else {
reset() reset()