all repos

clerk @ c508b13

missing tooling for ledger/hledger

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
add support of subdirectives and it's highlights, 1 month ago
1
-- input --
2
commodity UAH
3
  format 1 000.00 UAH
4
  note Божественна Гривня  ; this gets ignored
5
6
-- expect --
7
Journal
8
  CommodityDirective j:1:1-5:0
9
    Commodity: "UAH" j:1:11-2:0
10
    Format j:2:3-2:9
11
      Amount j:2:10-3:0
12
        Quantity: 1000
13
        Commodity: "UAH" j:2:19-3:0
14
        CommodityPos: After
15
        HasSpace: true
16
        Precision: 2
17
        Decimal: "."
18
        Thousands: " "
19
  BlankLine j:5:0-5:1
20
  Errors
21
    j:3:3-3:7: unknown subdirective "note"