aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 19a497fe..843dba05 100644
--- a/compile.c
+++ b/compile.c
@@ -215,6 +215,10 @@ CORD compile(ast_t *ast)
return CORD_cat_char(code, ')');
}
// Lambda,
+ case KeywordArg: {
+ auto kwarg = Match(ast, KeywordArg);
+ return CORD_asprintf(".%s=%r", kwarg->name, compile(kwarg->arg));
+ }
// KeywordArg,
case If: {
auto if_ = Match(ast, If);