Expressions

- Eliminated the . prefix for DOM references to the current task - it is
  unnatural to state ".due < today".
- Prioritized parsing dates ahead of integers, which were masking all
  dates.
This commit is contained in:
Paul Beckingham
2011-07-19 00:25:26 -04:00
parent e564827be7
commit 09d94a0712
7 changed files with 27 additions and 25 deletions

View File

@@ -638,15 +638,15 @@ void Expression::tokenize (
else if (n.getNumber (d))
tokens.push_back (Triple (format (d), "number", category));
else if (n.getInt (i))
tokens.push_back (Triple (format (i), "int", category));
else if (n.getDateISO (t))
tokens.push_back (Triple (Date (t).toISO (), "date", category));
else if (n.getDate (date_format, t))
tokens.push_back (Triple (Date (t).toString (date_format), "date", category));
else if (n.getInt (i))
tokens.push_back (Triple (format (i), "int", category));
else if (n.getWord (s))
tokens.push_back (Triple (s, "rvalue", category));