all repos

clerk @ e76a121

missing tooling for ledger/hledger

clerk/journal/parser/testdata/bad_between_good.txtar (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
add support of subdirectives and it's highlights, 1 month ago
1
-- input --
2
2024/01/01 groceries
3
    expenses:food  $10
4
    @@@bad
5
    assets:cash  $5
6
-- expect --
7
Journal
8
  Transaction j:1:1-5:1
9
    Date: 2024/01/01
10
    Payee: "groceries" j:1:12-2:0
11
    Posting j:2:1-3:1
12
      Account j:2:5-2:18
13
        SubAccount: "expenses" j:2:5-2:13
14
        SubAccount: "food" j:2:14-2:18
15
      Amount j:2:20-3:0
16
        Quantity: 10
17
        Commodity: "$" j:2:20-2:21
18
        CommodityPos: Before
19
        HasSpace: false
20
        Precision: 0
21
    Posting j:4:1-5:1
22
      Account j:4:5-4:16
23
        SubAccount: "assets" j:4:5-4:11
24
        SubAccount: "cash" j:4:12-4:16
25
      Amount j:4:18-5:0
26
        Quantity: 5
27
        Commodity: "$" j:4:18-4:19
28
        CommodityPos: Before
29
        HasSpace: false
30
        Precision: 0
31
  Errors
32
    j:3:5-3:7: expected account name, got ATAT