File: comments.ledger

package info (click to toggle)
ledger2beancount 2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 904 kB
  • sloc: perl: 1,920; sh: 151; makefile: 22
file content (146 lines) | stat: -rw-r--r-- 3,693 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
; Beancount: 2.1.0
; SPDX-FileCopyrightText: © 2018 Martin Michlmayr <tbm@cyrius.com>
;
; SPDX-License-Identifier: GPL-3.0-or-later

; -*- ledger -*-
;; -*- ledger -*-

* -*- ledger -*-

account Assets:Test
account Equity:Opening-Balance
account Assets:Commodity-Test123

commodity EUR

comment
    This is a block comment
    Second line
end comment

comment
Comment without indentation
Second line
end comment

test
    Another comment
end test

test
    test can be ended with end comment
end comment

comment
    comment can be ended with end test
end test

!comment
    This is another block comment
end comment

@comment
No indentation, followed by
    indentation.
end comment

@comment
    Indentation, followed by
no indentation.
end comment

; This is a single line comment,
#  and this,
%   and this,
|    and this,
*     and this.

; This is a comment
; Test: not a tag
; :not:a:tag:
; Another comment

2018-03-17 * Test
    ; Another comment
    Assets:Test                        10.00 EUR ; What an "interesting" account name
    ; full line posting comment
    Equity:Opening-Balance            -10.00 EUR ; Opening balance?
        ; posting-level comment

2018-03-17 * Tag and comment on same line
    ; :tag: comment
    Assets:Test                        10.00 EUR
    Equity:Opening-Balance            -10.00 EUR

2018-03-17 * Multi-line comment
    ; comment1
    ; comment2
    Assets:Test                        10.00 EUR
    Equity:Opening-Balance            -10.00 EUR

2018-03-27 * Account name could be mistaken for commodity
    Assets:Test                        10.00 EUR
    Assets:Commodity-Test123       ; comment

2018-03-27 * Account name could be mistaken for commodity
    Assets:Test                        10.00 EUR
    Assets:Commodity-Test123  ; comment

2019-01-25 * A payee can contain ; without problems
    Assets:Test                        10.00 EUR
    Equity:Opening-Balance            -10.00 EUR

2019-01-25 * You can put a comment on the same line as the payee  ; comment
    Assets:Test                        10.00 EUR
    Equity:Opening-Balance            -10.00 EUR

2019-01-25 * You can put a comment on the same line as the payee  ; this is a comment
    Assets:Test                        10.00 EUR
    Equity:Opening-Balance            -10.00 EUR

;No space
2020-10-01 * Comment spacing
    ;No space
    Assets:Test                        10.00 EUR;No space
    Equity:Opening-Balance            -10.00 EUR

;  Two space
2020-10-01 * Comment spacing
    ;  Two space
    Assets:Test                        10.00 EUR;  Two space
    Equity:Opening-Balance            -10.00 EUR

2020-10-01 * Empty comment, with trailing whitespace
    Assets:Test                        10.00 EUR   ;   
    Assets:Test                       -10.00 EUR

2020-10-23 * Payee  ;  comment which starts with two spaces
    Assets:Test                        10.00 EUR
    Assets:Test                       -10.00 EUR

2020-10-23 * Payee  ;	comment which starts with tab
    Assets:Test                        10.00 EUR
    Assets:Test                       -10.00 EUR

2020-10-23 * Empty comment
    Assets:Test                        10.00 EUR ;
    Assets:Test                       -10.00 EUR

2020-10-23 * Comment spacing
    ;	Tab
    Assets:Test                        10.00 EUR ;	Tab
    Equity:Opening-Balance            -10.00 EUR

2020-10-23 * Empty comments
    Assets:Test                        10.00 EUR ;
    Assets:Test                        10.00 EUR ; 
    Assets:Test                        10.00 EUR ;  
    Assets:Test                        10.00 EUR ;	
    ;
    ;             
    ;	
    ; 	
    ;	 
    Equity:Opening-Balance