diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-12 15:42:02 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-12 15:43:00 -0400 |
commit | b1b4e2aadff5983d443d70c09ea86a41b015873f (patch) | |
tree | 2c40305c9f9841a4c3d453a4a5c49ec69056b4b2 /test/regress/F559EC12.test | |
parent | 0555e7f61ef14ec667f8ba611e60fd96133a9676 (diff) | |
download | fork-ledger-b1b4e2aadff5983d443d70c09ea86a41b015873f.tar.gz fork-ledger-b1b4e2aadff5983d443d70c09ea86a41b015873f.tar.bz2 fork-ledger-b1b4e2aadff5983d443d70c09ea86a41b015873f.zip |
Add support for typed metadata
The metadata construct 'Key: Value' is now just a special case for
'Key:: "Value"'. Another after a :: in metadata setting is parsed as a
full value expression and typed as such. For example:
; Key:: $400 + $500
ledger -l 'tag("Key") < $1000'
Diffstat (limited to 'test/regress/F559EC12.test')
-rw-r--r-- | test/regress/F559EC12.test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/regress/F559EC12.test b/test/regress/F559EC12.test index c8b686db..d6b2521e 100644 --- a/test/regress/F559EC12.test +++ b/test/regress/F559EC12.test @@ -6,6 +6,7 @@ format "%-12(scrub(amount))" ; This note applies to all postings. :SecondTag: Expenses:Books 20 BOOK @ $10 ; Metadata: Some Value + ; Typed:: $100 + $200 ; :ExampleTag: ; Here follows a note describing the posting. Liabilities:MasterCard $-200.00 @@ -27,6 +28,7 @@ format "%12(scrub(amount))" ; This note applies to all postings. :SecondTag: Expenses:Books 20 BOOK @ $10 ; Metadata: Some Value + ; Typed:: $100 + $200 ; :ExampleTag: ; Here follows a note describing the posting. Liabilities:MasterCard $-200.00 |