This commit is contained in:
Chris Wong 2015-03-15 16:42:34 +13:00
parent 333eb46c3a
commit 92020cfa86

View file

@ -236,8 +236,7 @@ impl<'cx, 's, 'i> Parser<'cx, 's, 'i> {
self.shift(1); self.shift(1);
tts.push(tt.clone()); tts.push(tt.clone());
} }
loop { loop { match self.input {
match self.input {
// Munch attribute lookups e.g. `$person.address.street` // Munch attribute lookups e.g. `$person.address.street`
[ref dot @ dot!(), ref ident @ ident!(_), ..] => { [ref dot @ dot!(), ref ident @ ident!(_), ..] => {
self.shift(2); self.shift(2);
@ -250,8 +249,7 @@ impl<'cx, 's, 'i> Parser<'cx, 's, 'i> {
tts.push(TtDelimited(sp, d.clone())); tts.push(TtDelimited(sp, d.clone()));
}, },
_ => break, _ => break,
} }}
}
if tts.is_empty() { if tts.is_empty() {
self.render.cx.span_fatal(sp, "expected expression for this splice"); self.render.cx.span_fatal(sp, "expected expression for this splice");
} else { } else {