(parse_entry): Parse the pending flag if a ! is used in place of *.
This commit is contained in:
parent
0f98c9235f
commit
9ff282bd11
1 changed files with 11 additions and 3 deletions
14
textual.cc
14
textual.cc
|
|
@ -220,9 +220,17 @@ entry_t * parse_entry(std::istream& in, char * line, account_t * master,
|
|||
|
||||
TIMER_START(entry_details);
|
||||
|
||||
if (next && *next == '*') {
|
||||
curr->state = entry_t::CLEARED;
|
||||
next = skip_ws(++next);
|
||||
if (next) {
|
||||
switch (*next) {
|
||||
case '*':
|
||||
curr->state = entry_t::CLEARED;
|
||||
next = skip_ws(++next);
|
||||
break;
|
||||
case '!':
|
||||
curr->state = entry_t::PENDING;
|
||||
next = skip_ws(++next);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Parse the optional code: (TEXT)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue