From b1b4e2aadff5983d443d70c09ea86a41b015873f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 12 Jun 2010 15:42:02 -0400 Subject: 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' --- src/precmd.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/precmd.cc') diff --git a/src/precmd.cc b/src/precmd.cc index 43a9835c..f78d766e 100644 --- a/src/precmd.cc +++ b/src/precmd.cc @@ -54,6 +54,7 @@ namespace { << " ; This note applies to all postings. :SecondTag:\n" << " Expenses:Books 20 BOOK @ $10\n" << " ; Metadata: Some Value\n" + << " ; Typed:: $100 + $200\n" << " ; :ExampleTag:\n" << " ; Here follows a note describing the posting.\n" << " Liabilities:MasterCard $-200.00\n"; -- cgit v1.2.3