diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-16 12:09:47 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-17 11:04:05 -0700 |
| commit | 67cc5b9e346cba9cc8fdaa00e38ef26b4d9936cf (patch) | |
| tree | 0e2fc0e98276e6959121137e0c1abf565eec7387 /src/comp/syntax/parse | |
| parent | c95e3ab6a8bdaf5c73b7addbda5af0e2e7e24a10 (diff) | |
| download | rust-67cc5b9e346cba9cc8fdaa00e38ef26b4d9936cf.tar.gz rust-67cc5b9e346cba9cc8fdaa00e38ef26b4d9936cf.zip | |
Allow multiple exports in a single export statement. Issue #817
Diffstat (limited to 'src/comp/syntax/parse')
| -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 { |
