code/binaries

This commit is contained in:
Marc Beninca 2025-07-11 23:14:57 +02:00
parent c3449a1148
commit 38bcab046b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 3 additions and 11 deletions

View file

@ -41,7 +41,7 @@ BEGIN {
RE_FUNC = RE_SPACES "\\(" RE_SPACES "\\)" RE_SPACES "{" RE_FUNC = RE_SPACES "\\(" RE_SPACES "\\)" RE_SPACES "{"
re["alias"] = RE_BEGIN "#=" RE_SPACES RE_VAR RE_END re["alias"] = RE_BEGIN "#=" RE_SPACES RE_VAR RE_END
RE_BINARY = RE_BEGIN "#\\|" RE_SPACES RE_VAR RE_END re["binary"] = RE_BEGIN "#\\|" RE_SPACES RE_VAR RE_END
RE_CLOSE = RE_BEGIN "}" RE_SPACES RE_END RE_CLOSE = RE_BEGIN "}" RE_SPACES RE_END
RE_COMMAND = RE_BEGIN "#/" RE_SPACES RE_VAR RE_END RE_COMMAND = RE_BEGIN "#/" RE_SPACES RE_VAR RE_END
RE_COMMENT = RE_BEGIN "#" RE_ANY RE_END RE_COMMENT = RE_BEGIN "#" RE_ANY RE_END
@ -66,10 +66,6 @@ BEGIN {
if (match($0, re[target], m)) { if (match($0, re[target], m)) {
unique[m[1]] = "" unique[m[1]] = ""
} }
} else if (action == "binaries") {
if (match($0, RE_BINARY, m)) {
binaries[m[1]] = ""
}
} else if (action == "commands") { } else if (action == "commands") {
if (match($0, RE_COMMAND, m)) { if (match($0, RE_COMMAND, m)) {
print m[1] print m[1]
@ -215,10 +211,6 @@ END {
for (item in unique) { for (item in unique) {
print item print item
} }
} else if (action == "binaries") {
for (binary in binaries) {
print binary
}
} }
# FIXME tasks last module end # FIXME tasks last module end
} }

View file

@ -264,11 +264,11 @@ EOF
# parse aliases # parse aliases
_rwx_code_aliases="$(rwx_code_action_target "filter" "alias")" _rwx_code_aliases="$(rwx_code_action_target "filter" "alias")"
# parse binaries # parse binaries
_rwx_code_binaries="$(rwx_code_parse "binaries")" _rwx_code_binaries="$(rwx_code_action_target "filter" "binary")"
# parse commands # parse commands
_rwx_code_commands="$(rwx_code_parse "commands")" _rwx_code_commands="$(rwx_code_parse "commands")"
# parse constants # parse constants
_rwx_code_constants="$(rwx_code_action_target "filter" "constants")" _rwx_code_constants="$(rwx_code_action_target "filter" "constant")"
# parse functions # parse functions
_rwx_code_functions="$(rwx_code_action_target "filter" "function")" _rwx_code_functions="$(rwx_code_action_target "filter" "function")"
# parse tasks # parse tasks