all repos

clerk @ ed49a0d4be8464b112ec67f299693424d1f89bb7

missing tooling for ledger/hledger

clerk/journal/parser/testdata/bad_posting_at_end.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
6
2024/01/02 salary
7
    income:salary  $1000
8
    assets:checking
9
-- expect --
10
Journal
11
  Transaction j:1:1-5:0
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
  BlankLine j:5:0-5:1
25
  Transaction j:5:1-8:1
26
    Date: 2024/01/02
27
    Payee: "salary" j:5:12-6:0
28
    Posting j:6:1-7:1
29
      Account j:6:5-6:18
30
        SubAccount: "income" j:6:5-6:11
31
        SubAccount: "salary" j:6:12-6:18
32
      Amount j:6:20-7:0
33
        Quantity: 1000
34
        Commodity: "$" j:6:20-6:21
35
        CommodityPos: Before
36
        HasSpace: false
37
        Precision: 0
38
    Posting j:7:1-8:1
39
      Account j:7:5-8:0
40
        SubAccount: "assets" j:7:5-7:11
41
        SubAccount: "checking" j:7:12-8:0
42
      Amount: <elided>
43
  Errors
44
    j:3:5-3:7: expected account name, got ATAT