From c74a442e86abf885b53dba8a1a33359c70f49e15 Mon Sep 17 00:00:00 2001 From: Paul Stansifer Date: Wed, 22 Aug 2012 18:06:54 -0700 Subject: Eliminate some extraneous curly brackets inside invocations of `macro_rules!`. --- src/libsyntax/parse/parser.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/libsyntax/parse') 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); } _ => () }} -- cgit 1.4.1-3-g733a5