summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'match.c')
-rw-r--r--match.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/match.c b/match.c
index 3a1024e9..a7a65098 100644
--- a/match.c
+++ b/match.c
@@ -596,6 +596,11 @@ static val h_var(match_line_ctx *c)
sym, nao);
}
+ if (bindable(modifier)) {
+ val mpair = tx_lookup_var_ubc(modifier, c->bindings, elem);
+ modifier = cdr(mpair);
+ }
+
if (pair) {
/* If the variable already has a binding, we replace
it with its value, and treat it as a string match.