mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
e564827be7
commit
09d94a0712
7 changed files with 27 additions and 25 deletions
|
@ -933,18 +933,6 @@ bool Nibbler::getDOM (std::string& result)
|
|||
std::string right;
|
||||
int number;
|
||||
|
||||
if (skip ('.') &&
|
||||
getWord (right))
|
||||
{
|
||||
while (skip ('.') &&
|
||||
getWord (right))
|
||||
;
|
||||
|
||||
result = mInput.substr (i, mCursor - i);
|
||||
return true;
|
||||
}
|
||||
|
||||
restore ();
|
||||
if (getWord (left) &&
|
||||
skip ('.') &&
|
||||
getWord (right))
|
||||
|
@ -982,6 +970,18 @@ bool Nibbler::getDOM (std::string& result)
|
|||
result = mInput.substr (i, mCursor - i);
|
||||
return true;
|
||||
}
|
||||
|
||||
restore ();
|
||||
if (getWord (right))
|
||||
{
|
||||
while (skip ('.') &&
|
||||
getWord (right))
|
||||
;
|
||||
|
||||
result = mInput.substr (i, mCursor - i);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue