From 67cc5b9e346cba9cc8fdaa00e38ef26b4d9936cf Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 16 Aug 2011 12:09:47 -0700 Subject: Allow multiple exports in a single export statement. Issue #817 --- src/comp/syntax/parse/parser.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/comp/syntax/parse') 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 { -- cgit 1.4.1-3-g733a5