summaryrefslogtreecommitdiff
path: root/src/token.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-05-26 23:45:44 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-05-26 23:45:44 -0500
commit0e9f782a05ab9bc892af40abef84346a16d3baec (patch)
treef03ab214032d27f2989edf537bcaf8daee11cb28 /src/token.cc
parentd2062bb54cad108fe7f9e03fdb0f10d18cc721fc (diff)
downloadfork-ledger-0e9f782a05ab9bc892af40abef84346a16d3baec.tar.gz
fork-ledger-0e9f782a05ab9bc892af40abef84346a16d3baec.tar.bz2
fork-ledger-0e9f782a05ab9bc892af40abef84346a16d3baec.zip
Added % suffix operator, as in "$1.00 * 10%"
Diffstat (limited to 'src/token.cc')
-rw-r--r--src/token.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/token.cc b/src/token.cc
index fde6a0e3..d173c7ec 100644
--- a/src/token.cc
+++ b/src/token.cc
@@ -278,6 +278,11 @@ void expr_t::token_t::next(std::istream& in, const uint_least8_t pflags)
kind = STAR;
break;
+ case '%':
+ in.get(c);
+ kind = PERCENT;
+ break;
+
case '?':
in.get(c);
kind = QUERY;