diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2017-10-30 13:07:34 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2017-10-30 13:07:34 +0100 |
commit | a2be48dcb8ac189e55f1fe7163d68d7056cfc9d5 (patch) | |
tree | 9cc095df05f3cc5b2ac80f5ef9842818fd3a86f1 /src | |
parent | 645f6a332a649d5bad9c60f0b07d7084901e5cb9 (diff) |
Fix: Parse complete next expression
Diffstat (limited to 'src')
-rw-r--r-- | src/parser.rs | 2 |
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, }) )); |