all repos

clerk @ ab4f6083f493cb5911c86ae5f723d4519f7d52da

missing tooling for ledger/hledger

clerk/journal/parser/testdata/transaction_with_strange_commodity_symbols.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
2026-05-20
4
  asdf  123 $€£
5
  asdf2
6
7
2026-05-20
8
  asdf  123 bytes
9
  asdf2
10
-- expect --
11
Journal
12
  Transaction j:1:1-2:1
13
    Date: 2024-01-01
14
    Payee: "groceries" j:1:12-2:0
15
  Transaction j:2:1-6:0
16
    Date: 2026-05-20
17
    Posting j:3:1-4:1
18
      Account j:3:3-3:7
19
        SubAccount: "asdf" j:3:3-3:7
20
      Amount j:3:9-4:0
21
        Quantity: 123
22
        Commodity: "$€£" j:3:13-4:0
23
        CommodityPos: After
24
        HasSpace: true
25
        Precision: 0
26
    Posting j:4:1-6:0
27
      Account j:4:3-5:0
28
        SubAccount: "asdf2" j:4:3-5:0
29
      Amount: <elided>
30
  BlankLine j:6:0-6:1
31
  Transaction j:6:1-9:1
32
    Date: 2026-05-20
33
    Posting j:7:1-8:1
34
      Account j:7:3-7:7
35
        SubAccount: "asdf" j:7:3-7:7
36
      Amount j:7:9-8:0
37
        Quantity: 123
38
        Commodity: "bytes" j:7:13-8:0
39
        CommodityPos: After
40
        HasSpace: true
41
        Precision: 0
42
    Posting j:8:1-9:1
43
      Account j:8:3-9:0
44
        SubAccount: "asdf2" j:8:3-9:0
45
      Amount: <elided>