diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-09 01:28:20 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-09 01:28:20 -0600 |
commit | c9f7195936090ecbe2d5b4ec88c196660ae24f81 (patch) | |
tree | 7bfbe9d00de44c0c79c460169ad324b6a17c6379 /src/annotate.cc | |
parent | 9f81c798ee0854cab038714670123bff6676a5d5 (diff) | |
download | fork-ledger-c9f7195936090ecbe2d5b4ec88c196660ae24f81.tar.gz fork-ledger-c9f7195936090ecbe2d5b4ec88c196660ae24f81.tar.bz2 fork-ledger-c9f7195936090ecbe2d5b4ec88c196660ae24f81.zip |
Added the notion of "virtual costs"
Diffstat (limited to 'src/annotate.cc')
-rw-r--r-- | src/annotate.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/annotate.cc b/src/annotate.cc index d2e4976e..1140bf0a 100644 --- a/src/annotate.cc +++ b/src/annotate.cc @@ -122,7 +122,12 @@ void annotation_t::parse(std::istream& in) else if (c == '(') { in.get(c); c = static_cast<char>(in.peek()); - if (c == '(') { + if (c == '@') { + in.clear(); + in.seekg(pos, std::ios::beg); + break; + } + else if (c == '(') { if (value_expr) throw_(amount_error, _("Commodity specifies more than one valuation expresion")); |