diff options
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 267308c1c04..e6b65444029 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -2353,8 +2353,9 @@ fn parse_import(p: &parser) -> ast::view_item_ { } fn parse_export(p: &parser) -> ast::view_item_ { - let id = parse_ident(p); - ret ast::view_item_export(id, p.get_id()); + let ids = parse_seq_to_before_end( + token::SEMI, option::some(token::COMMA), parse_ident, p); + ret ast::view_item_export(ids, p.get_id()); } fn parse_view_item(p: &parser) -> @ast::view_item { |
