all repos

clerk @ 9d057cb

missing tooling for ledger/hledger

clerk/journal/parser/testdata/illegal_between_transactions.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
    assets:checking
5
@@@
6
2024/01/02 salary
7
    income:salary  $1000
8
    assets:checking
9
-- expect --
10
Journal
11
  Transaction j:1:1-4:1
12
    Date: 2024/01/01
13
    Payee: "groceries" j:1:12-2:0
14
    Posting j:2:1-3:1
15
      Account j:2:5-2:18
16
        SubAccount: "expenses" j:2:5-2:13
17
        SubAccount: "food" j:2:14-2:18
18
      Amount j:2:20-3:0
19
        Quantity: 10
20
        Commodity: "$" j:2:20-2:21
21
        CommodityPos: Before
22
        HasSpace: false
23
        Precision: 0
24
    Posting j:3:1-4:1
25
      Account j:3:5-4:0
26
        SubAccount: "assets" j:3:5-3:11
27
        SubAccount: "checking" j:3:12-4:0
28
      Amount: <elided>
29
  Transaction j:5:1-8:1
30
    Date: 2024/01/02
31
    Payee: "salary" j:5:12-6:0
32
    Posting j:6:1-7:1
33
      Account j:6:5-6:18
34
        SubAccount: "income" j:6:5-6:11
35
        SubAccount: "salary" j:6:12-6:18
36
      Amount j:6:20-7:0
37
        Quantity: 1000
38
        Commodity: "$" j:6:20-6:21
39
        CommodityPos: Before
40
        HasSpace: false
41
        Precision: 0
42
    Posting j:7:1-8:1
43
      Account j:7:5-8:0
44
        SubAccount: "assets" j:7:5-7:11
45
        SubAccount: "checking" j:7:12-8:0
46
      Amount: <elided>
47
  Errors
48
    j:4:1-4:2: unexpected token AT