diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-15 05:17:17 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-15 05:49:54 -0500 |
commit | 2a411b5c1d974b73471f1f7c9a79db204c79d1d9 (patch) | |
tree | 2ceafc01d749afb982eb9600fd8a175b0c94b008 /src/query.h | |
parent | 38e165a99408b9020ff2ea6fea5449f7a7e58698 (diff) | |
download | fork-ledger-2a411b5c1d974b73471f1f7c9a79db204c79d1d9.tar.gz fork-ledger-2a411b5c1d974b73471f1f7c9a79db204c79d1d9.tar.bz2 fork-ledger-2a411b5c1d974b73471f1f7c9a79db204c79d1d9.zip |
Corrected parsing of the 'expr' report query term
Diffstat (limited to 'src/query.h')
-rw-r--r-- | src/query.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/query.h b/src/query.h index 73639263..43db60a6 100644 --- a/src/query.h +++ b/src/query.h @@ -61,6 +61,7 @@ public: string::const_iterator arg_end; bool consume_whitespace; + bool consume_next_arg; public: struct token_t @@ -175,7 +176,9 @@ public: lexer_t(value_t::sequence_t::const_iterator _begin, value_t::sequence_t::const_iterator _end) - : begin(_begin), end(_end), consume_whitespace(false) + : begin(_begin), end(_end), + consume_whitespace(false), + consume_next_arg(false) { TRACE_CTOR(lexer_t, ""); assert(begin != end); @@ -186,6 +189,7 @@ public: : begin(lexer.begin), end(lexer.end), arg_i(lexer.arg_i), arg_end(lexer.arg_end), consume_whitespace(lexer.consume_whitespace), + consume_next_arg(lexer.consume_next_arg), token_cache(lexer.token_cache) { TRACE_CTOR(lexer_t, "copy"); |