diff options
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 638a02775d9..4ccbdd0f8ed 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -120,7 +120,7 @@ enum view_item_parse_mode { The important thing is to make sure that lookahead doesn't balk at INTERPOLATED tokens */ macro_rules! maybe_whole_expr ( - ($p:expr) => { match copy $p.token { + ($p:expr) => ( match copy $p.token { INTERPOLATED(token::nt_expr(e)) => { $p.bump(); return e; @@ -131,33 +131,33 @@ macro_rules! maybe_whole_expr ( expr_path(pt)); } _ => () - }} + }) ) macro_rules! maybe_whole ( - ($p:expr, $constructor:ident) => { match copy $p.token { + ($p:expr, $constructor:ident) => ( match copy $p.token { INTERPOLATED(token::$constructor(x)) => { $p.bump(); return x; } _ => () - }} ; - (deref $p:expr, $constructor:ident) => { match copy $p.token { + }) ; + (deref $p:expr, $constructor:ident) => ( match copy $p.token { INTERPOLATED(token::$constructor(x)) => { $p.bump(); return *x; } _ => () - }} ; - (Some $p:expr, $constructor:ident) => { match copy $p.token { + }) ; + (Some $p:expr, $constructor:ident) => ( match copy $p.token { INTERPOLATED(token::$constructor(x)) => { $p.bump(); return Some(x); } _ => () - }} ; - (iovi $p:expr, $constructor:ident) => { match copy $p.token { + }) ; + (iovi $p:expr, $constructor:ident) => ( match copy $p.token { INTERPOLATED(token::$constructor(x)) => { $p.bump(); return iovi_item(x); } _ => () - }} ; - (pair_empty $p:expr, $constructor:ident) => { match copy $p.token { + }) ; + (pair_empty $p:expr, $constructor:ident) => ( match copy $p.token { INTERPOLATED(token::$constructor(x)) => { $p.bump(); return (~[], x); } _ => () - }} + }) ) |
