clerk/journal/parser/testdata/account_with_subdirectives.txtar (view raw)
Oleksandr Smirnov
Oleksandr Smirnov
olexsmir@gmail.com add support of subdirectives and it's highlights, 1 month ago
olexsmir@gmail.com add support of subdirectives and it's highlights, 1 month ago
| 1 | -- input -- |
| 2 | account expenses:food |
| 3 | note some note |
| 4 | alias food ; this gets ignored |
| 5 | -- expect -- |
| 6 | Journal |
| 7 | AccountDirective j:1:1-4:1 |
| 8 | Account j:1:9-2:0 |
| 9 | SubAccount: "expenses" j:1:9-1:17 |
| 10 | SubAccount: "food" j:1:18-2:0 |
| 11 | Subdirective |
| 12 | Name: "note" j:2:3-2:7 |
| 13 | Value: "some note" j:2:8-3:0 |
| 14 | Subdirective |
| 15 | Name: "alias" j:3:3-3:8 |
| 16 | Value: "food" j:3:9-3:13 |
| 17 | Comment j:3:15-4:0 |
| 18 | Marker: ";" |
| 19 | Text: "this gets ignored" |