diff options
author | John Wiegley <johnw@newartisans.com> | 2009-05-26 23:45:44 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-05-26 23:45:44 -0500 |
commit | 0e9f782a05ab9bc892af40abef84346a16d3baec (patch) | |
tree | f03ab214032d27f2989edf537bcaf8daee11cb28 /src/commodity.cc | |
parent | d2062bb54cad108fe7f9e03fdb0f10d18cc721fc (diff) | |
download | fork-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/commodity.cc')
-rw-r--r-- | src/commodity.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commodity.cc b/src/commodity.cc index 3e4d1160..67a86b87 100644 --- a/src/commodity.cc +++ b/src/commodity.cc @@ -499,14 +499,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, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, + /* 20 */ 1, 1, 0, 0, 0, 1, 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, |