filter/aliases
This commit is contained in:
parent
fa9a2435a4
commit
030be80a01
2 changed files with 16 additions and 4 deletions
|
@ -36,7 +36,7 @@ BEGIN {
|
|||
RE_END = 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_CLOSE = RE_BEGIN "}" RE_SPACES RE_END
|
||||
RE_COMMAND = RE_BEGIN "#/" RE_SPACES RE_VAR RE_END
|
||||
|
@ -58,8 +58,8 @@ BEGIN {
|
|||
}
|
||||
|
||||
{
|
||||
if (action == "aliases") {
|
||||
if (match($0, RE_ALIAS, m)) {
|
||||
if (action == "filter") {
|
||||
if (match($0, re[target], m)) {
|
||||
print m[1]
|
||||
}
|
||||
} else if (action == "binaries") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue