diff options
author | John Wiegley <johnw@newartisans.com> | 2011-11-10 01:26:38 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-11-10 01:26:38 -0600 |
commit | f4fd2ab1e5b2b409aade83cc91541314b723ea13 (patch) | |
tree | 9c4b95ae78384b3327efd93f9880e90aaace27f6 /src/token.cc | |
parent | 37e9ec8030a2634cbe9b2727f4d5530a582292c7 (diff) | |
download | fork-ledger-f4fd2ab1e5b2b409aade83cc91541314b723ea13.tar.gz fork-ledger-f4fd2ab1e5b2b409aade83cc91541314b723ea13.tar.bz2 fork-ledger-f4fd2ab1e5b2b409aade83cc91541314b723ea13.zip |
Corrections to the query language parser
Fixes #552
Diffstat (limited to 'src/token.cc')
-rw-r--r-- | src/token.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/token.cc b/src/token.cc index fc7f73ee..fe7ce7cd 100644 --- a/src/token.cc +++ b/src/token.cc @@ -229,7 +229,6 @@ void expr_t::token_t::next(std::istream& in, const parse_flags_t& pflags) break; } -#if 0 case '{': { in.get(c); amount_t temp; @@ -242,7 +241,6 @@ void expr_t::token_t::next(std::istream& in, const parse_flags_t& pflags) value = temp; break; } -#endif case '!': in.get(c); @@ -426,7 +424,7 @@ void expr_t::token_t::next(std::istream& in, const parse_flags_t& pflags) throw_(parse_error, _("Failed to reset input stream")); c = static_cast<char>(in.peek()); - if (std::isdigit(c) || c == '.') + if (! std::isalpha(c)) expected('\0', c); parse_ident(in); |