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

View file

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