summaryrefslogtreecommitdiff
path: root/src/pretty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pretty.rs')
-rw-r--r--src/pretty.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pretty.rs b/src/pretty.rs
index 52300546..179e5d2d 100644
--- a/src/pretty.rs
+++ b/src/pretty.rs
@@ -357,6 +357,10 @@ impl Pretty for CallArg {
match self {
Self::Pos(expr) => expr.pretty(p),
Self::Named(named) => named.pretty(p),
+ Self::Spread(expr) => {
+ p.push_str("..");
+ expr.pretty(p);
+ }
}
}
}
@@ -375,6 +379,10 @@ impl Pretty for ClosureParam {
match self {
Self::Pos(ident) => ident.pretty(p),
Self::Named(named) => named.pretty(p),
+ Self::Sink(ident) => {
+ p.push_str("..");
+ ident.pretty(p);
+ }
}
}
}
@@ -496,6 +504,7 @@ impl Pretty for Value {
Self::Dict(v) => v.pretty(p),
Self::Template(v) => v.pretty(p),
Self::Func(v) => v.pretty(p),
+ Self::Args(v) => v.pretty(p),
Self::Dyn(v) => v.pretty(p),
}
}