update syntax to include a slash

This commit is contained in:
Niko Matsakis 2012-04-19 20:05:50 -07:00
parent 3c995fb8f3
commit 3d6c79109e
9 changed files with 22 additions and 17 deletions

View file

@ -2249,7 +2249,12 @@ fn parse_item_type(p: parser, attrs: [ast::attribute]) -> @ast::item {
}
fn parse_region_param(p: parser) -> ast::region_param {
if eat(p, token::BINOP(token::AND)) {ast::rp_self} else {ast::rp_none}
if eat(p, token::BINOP(token::SLASH)) {
expect(p, token::BINOP(token::AND));
ast::rp_self
} else {
ast::rp_none
}
}
fn parse_item_enum(p: parser, attrs: [ast::attribute]) -> @ast::item {