clerk/journal/parser/testdata/comment_between_bad_postings.txtar (view raw)
| 1 | -- input -- |
| 2 | 2024/01/01 groceries |
| 3 | expenses:food $10 |
| 4 | @@@bad1 |
| 5 | ; a comment |
| 6 | @bad2 |
| 7 | assets:checking |
| 8 | -- expect -- |
| 9 | Journal |
| 10 | Transaction j:1:1-7:1 |
| 11 | Date: 2024/01/01 |
| 12 | Payee: "groceries" j:1:12-2:0 |
| 13 | Posting j:2:1-3:1 |
| 14 | Account j:2:5-2:18 |
| 15 | SubAccount: "expenses" j:2:5-2:13 |
| 16 | SubAccount: "food" j:2:14-2:18 |
| 17 | Amount j:2:20-2:20 |
| 18 | Quantity: 10 |
| 19 | Commodity: "$" |
| 20 | CommodityPos: Before |
| 21 | HasSpace: false |
| 22 | Precision: 0 |
| 23 | Decimal: "." |
| 24 | Posting j:6:1-7:1 |
| 25 | Account j:6:5-7:0 |
| 26 | SubAccount: "assets" j:6:5-6:11 |
| 27 | SubAccount: "checking" j:6:12-7:0 |
| 28 | Amount: <elided> |
| 29 | Errors |
| 30 | j:3:5-3:7: expected account name, got ATAT |
| 31 | j:4:5-4:6: expected account name, got SEMICOLON |
| 32 | j:5:5-5:6: expected account name, got AT |