all repos

clerk @ bfe61d3

missing tooling for ledger/hledger

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
add support of subdirectives and it's highlights, 1 month ago
1
-- input --
2
D $1.00
3
D 10 UAH
4
-- expect --
5
Journal
6
  DefaultCommodityDirective j:1:1-2:1
7
    Amount j:1:3-2:0
8
      Quantity: 1
9
      Commodity: "$" j:1:3-1:4
10
      CommodityPos: Before
11
      HasSpace: false
12
      Precision: 2
13
      Decimal: "."
14
  DefaultCommodityDirective j:2:1-3:1
15
    Amount j:2:3-3:0
16
      Quantity: 10
17
      Commodity: "UAH" j:2:6-3:0
18
      CommodityPos: After
19
      HasSpace: true
20
      Precision: 0