TW-1608: The recur/recurring report shows tasks without a recur interval

- Lexer needed additional lookbehind criteria for ::isTag (thanks to Brad
  Collette).
This commit is contained in:
Paul Beckingham 2015-05-09 21:27:48 -04:00
parent f30f4d45c6
commit 7293de75b0
3 changed files with 13 additions and 5 deletions

View file

@ -36,7 +36,7 @@ Context context;
////////////////////////////////////////////////////////////////////////////////
int main (int argc, char** argv)
{
UnitTest t (771);
UnitTest t (789);
std::vector <std::pair <std::string, Lexer::Type>> tokens;
std::string token;
@ -374,6 +374,9 @@ int main (int argc, char** argv)
{ "desc~pattern", { { "desc", Lexer::Type::dom },
{ "~", Lexer::Type::op },
{ "pattern", Lexer::Type::dom }, NO, NO }, },
{ "(+tag)", { { "(", Lexer::Type::op },
{ "+tag", Lexer::Type::tag },
{ ")", Lexer::Type::op }, NO, NO }, },
};
#define NUM_TESTS (sizeof (lexerTests) / sizeof (lexerTests[0]))