summaryrefslogtreecommitdiff
path: root/src/token.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-11-10 01:26:38 -0600
committerJohn Wiegley <johnw@newartisans.com>2011-11-10 01:26:38 -0600
commitf4fd2ab1e5b2b409aade83cc91541314b723ea13 (patch)
tree9c4b95ae78384b3327efd93f9880e90aaace27f6 /src/token.cc
parent37e9ec8030a2634cbe9b2727f4d5530a582292c7 (diff)
downloadfork-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.cc4
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);