========
comment
========

;; This is some comment.

---

(file (comment))

===========================
comment before transaction
===========================

; Hi
2015-06-07 *
    Assets:Cash   1 USD
    Assets:Cash   -1 USD

---

(file
    (comment)
    (transaction
        (date)
        (txn)
            (posting
                (account)
                (incomplete_amount
                    (number)
                    (currency)
                )
            )
            (posting
                (account)
                (incomplete_amount
                    (unary_number_expr (minus) (number))
                    (currency)
                )
            )
    )
)

==========================
comment after transaction
==========================

2015-06-07 *
    Assets:Cash   1 USD
    Assets:Cash   -1 USD
  ; Hi

---

(file
    (transaction
        (date)
        (txn)
            (posting
                (account)
                (incomplete_amount
                    (number)
                    (currency)
                )
            )
            (posting
                (account)
                (incomplete_amount
                    (unary_number_expr (minus) (number))
                    (currency)
                )
            )
            (comment)
    )
)

========================
comment between posting
========================

2015-06-07 *
    Assets:Cash   1 USD
    ; Hi
    Assets:Cash   -1 USD

---

(file
    (transaction
        (date)
        (txn)
            (posting
                (account)
                (incomplete_amount
                    (number)
                    (currency)
                )
            )
            (comment)
            (posting
                (account)
                (incomplete_amount
                    (unary_number_expr (minus) (number))
                    (currency)
                )
            )
    )
)

======================
comment after posting
======================

2015-06-07 *
    Assets:Cash   1 USD    ; Hi
    Assets:Cash   -1 USD

---

(file
    (transaction
        (date)
        (txn)
            (posting
                (account)
                (incomplete_amount
                    (number)
                    (currency)
                )
                (comment)
            )
            (posting
                (account)
                (incomplete_amount
                    (unary_number_expr (minus) (number))
                    (currency)
                )
            )
    )
)

================================
comment after transaction start
================================

2015-06-07 *     ; Hi
    Assets:Cash   1 USD
    Assets:Cash   -1 USD

---

(file
    (transaction
        (date)
        (txn)
        (comment)
            (posting
                (account)
                (incomplete_amount
                    (number)
                    (currency)
                )
            )
            (posting
                (account)
                (incomplete_amount
                    (unary_number_expr (minus) (number))
                    (currency)
                )
            )
    )
)
