jcornaz / beancount-parser

A beancount file parser library for rust
The Unlicense
21 stars 7 forks source link

Cannot parse minus sign in front of parenthesis #69

Closed blais closed 9 months ago

blais commented 9 months ago

Somehow this doesn't parse, results in a syntax error:

2022-12-27 balance Liabilities:US:BofA:Gold  -(6,331.71 + 29.86) USD
blais commented 9 months ago

It's the minus sign in front of the parenthesis that doesn't parse.

blais commented 9 months ago

Another failing example:

2023-06-27 balance Liabilities:US:BofA:Gold   -(13,723.23 + (143.69 + 15.60 + 20.57 + 6.61 + 28.44)) USD
jcornaz commented 9 months ago

Good catch. This is fixed in 2.0.4