Skip to content

Commit b95b017

Browse files
committed
Fix separator preserving with rest args
1 parent 66631c0 commit b95b017

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bind.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ namespace Sass {
8080
env->local_frame()[p->name()] = arglist;
8181
while (ia < LA) {
8282
a = (*as)[ia];
83+
if (a->is_rest_argument()) {
84+
if (List* rest = dynamic_cast<List*>(a->value())) {
85+
arglist->separator(rest->separator());
86+
}
87+
}
8388
(*arglist) << new (ctx.mem) Argument(a->pstate(),
8489
a->value(),
8590
a->name(),

0 commit comments

Comments
 (0)