From 985b52be6df504ce6dcef29df61ea20ab9c9323f Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Thu, 12 Jul 2012 15:03:33 -0700 Subject: Support prefix notation for vstore strings. Closes #2906. --- src/libsyntax/ext/tt/macro_rules.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libsyntax/ext/tt') diff --git a/src/libsyntax/ext/tt/macro_rules.rs b/src/libsyntax/ext/tt/macro_rules.rs index 822e8e0d697..b454dcfc0be 100644 --- a/src/libsyntax/ext/tt/macro_rules.rs +++ b/src/libsyntax/ext/tt/macro_rules.rs @@ -18,9 +18,9 @@ fn add_new_extension(cx: ext_ctxt, sp: span, name: ident, let argument_gram = ~[ ms(mtc_rep(~[ - ms(mtc_bb(@"lhs",@"mtcs", 0u)), + ms(mtc_bb(@"lhs"/~,@"mtcs"/~, 0u)), ms(mtc_tok(FAT_ARROW)), - ms(mtc_bb(@"rhs",@"tt", 1u)), + ms(mtc_bb(@"rhs"/~,@"tt"/~, 1u)), ], some(SEMI), false))]; let arg_reader = new_tt_reader(cx.parse_sess().span_diagnostic, @@ -31,11 +31,11 @@ fn add_new_extension(cx: ext_ctxt, sp: span, name: ident, failure(sp, msg) { cx.span_fatal(sp, msg); } }; - let lhses = alt arguments.get(@"lhs") { + let lhses = alt arguments.get(@"lhs"/~) { @seq(s, sp) { s } _ { cx.span_bug(sp, "wrong-structured lhs") } }; - let rhses = alt arguments.get(@"rhs") { + let rhses = alt arguments.get(@"rhs"/~) { @seq(s, sp) { s } _ { cx.span_bug(sp, "wrong-structured rhs") } }; -- cgit 1.4.1-3-g733a5