all repos

clerk @ 7596b2af7c9068599a791823b50e6bceacd7816a

missing tooling for ledger/hledger

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
add support of subdirectives and it's highlights, 1 month ago
1
-- input --
2
3
2013/1/1 * pay taxes
4
    expenses:personal:tax              $1250
5
    assets:bank:checking               $-1250
6
7
-- expect --
8
Journal
9
  BlankLine j:2:0-2:1
10
  Transaction j:2:1-6:0
11
    Date: 2013/01/01
12
    State: "*"
13
    Payee: "pay taxes" j:2:12-3:0
14
    Posting j:3:1-4:1
15
      Account j:3:5-3:26
16
        SubAccount: "expenses" j:3:5-3:13
17
        SubAccount: "personal" j:3:14-3:22
18
        SubAccount: "tax" j:3:23-3:26
19
      Amount j:3:40-4:0
20
        Quantity: 1250
21
        Commodity: "$" j:3:40-3:41
22
        CommodityPos: Before
23
        HasSpace: false
24
        Precision: 0
25
    Posting j:4:1-6:0
26
      Account j:4:5-4:25
27
        SubAccount: "assets" j:4:5-4:11
28
        SubAccount: "bank" j:4:12-4:16
29
        SubAccount: "checking" j:4:17-4:25
30
      Amount j:4:40-5:0
31
        Quantity: -1250
32
        Commodity: "$" j:4:40-4:41
33
        CommodityPos: Before
34
        HasSpace: false
35
        Precision: 0
36
  BlankLine j:6:0-6:1