diff options
| author | Paul Stansifer <paul.stansifer@gmail.com> | 2012-08-22 18:06:54 -0700 |
|---|---|---|
| committer | Paul Stansifer <paul.stansifer@gmail.com> | 2012-08-23 11:14:14 -0700 |
| commit | c74a442e86abf885b53dba8a1a33359c70f49e15 (patch) | |
| tree | 162ab5e15a79b149e015a80cc5dd4aaae3076280 /src/libsyntax/parse | |
| parent | 38891b91bfe5d3fd10e841dbc6f67965bed141ea (diff) | |
| download | rust-c74a442e86abf885b53dba8a1a33359c70f49e15.tar.gz rust-c74a442e86abf885b53dba8a1a33359c70f49e15.zip | |
Eliminate some extraneous curly brackets inside invocations of `macro_rules!`.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 2aef7c99dbc..5454d9ac0d9 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -127,7 +127,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 pexpr(e); @@ -142,26 +142,26 @@ macro_rules! maybe_whole_expr ( ) 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); } _ => () }} |
