libsyntax: Accept ',' to separate struct fields. Closes #3263.

This commit is contained in:
Patrick Walton
2012-08-25 16:06:35 -07:00
parent 8ef4551904
commit d77acf7d07
2 changed files with 14 additions and 2 deletions

View File

@@ -646,7 +646,7 @@ fn print_struct(s: ps, struct_def: @ast::struct_def, tps: ~[ast::ty_param],
print_ident(s, ident);
word_nbsp(s, ~":");
print_type(s, field.node.ty);
word(s.s, ~";");
word(s.s, ~",");
}
}
}