summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-06-21 17:49:38 +0100
committerJohn Wiegley <johnw@newartisans.com>2009-06-21 17:49:38 +0100
commit7287aad336161eb9a143f188c92d462e62051374 (patch)
tree9454bf16a1b769bd9acf8897e93b3153939e8cad /src/commodity.cc
parentadd2ffd5f34e8c68edcc95f9d0dbf6de11224ba1 (diff)
downloadfork-ledger-7287aad336161eb9a143f188c92d462e62051374.tar.gz
fork-ledger-7287aad336161eb9a143f188c92d462e62051374.tar.bz2
fork-ledger-7287aad336161eb9a143f188c92d462e62051374.zip
Revert "Added % suffix operator, as in "$1.00 * 10%""
This reverts commit 0e9f782a05ab9bc892af40abef84346a16d3baec.
Diffstat (limited to 'src/commodity.cc')
-rw-r--r--src/commodity.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index e69758f0..095912dd 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -501,14 +501,14 @@ void commodity_t::parse_symbol(std::istream& in, string& symbol)
{
// Invalid commodity characters:
// SPACE, TAB, NEWLINE, RETURN
- // 0-9 . , ; - + * / ^ ? : & | ! = %
+ // 0-9 . , ; - + * / ^ ? : & | ! =
// < > { } [ ] ( ) @
static int invalid_chars[256] = {
/* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 00 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0,
/* 10 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- /* 20 */ 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 20 */ 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1,
/* 30 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* 40 */ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 50 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0,