summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-10-30 13:07:34 +0100
committerMatthias Beyer <mail@beyermatthias.de>2017-10-30 13:07:34 +0100
commita2be48dcb8ac189e55f1fe7163d68d7056cfc9d5 (patch)
tree9cc095df05f3cc5b2ac80f5ef9842818fd3a86f1
parent645f6a332a649d5bad9c60f0b07d7084901e5cb9 (diff)
Fix: Parse complete next expression
-rw-r--r--src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 9ca8f16..d016ee9 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -148,7 +148,7 @@ named!(amount_expr_next<(Operator, Box<AmountExpr>)>, do_parse!(
named!(amount_expr<AmountExpr>, do_parse!(
amount:amount_parser >>
opt!(sp) >>
- o: opt!(amount_expr_next) >>
+ o: opt!(complete!(amount_expr_next)) >>
(AmountExpr { amount: amount, next: o, })
));