mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI2: Apply desugaring of plain filter args to date args
This ensures that commands like `task marc` perform description substring search on `marc`. Closes #2451.
This commit is contained in:
parent
475a16b3d4
commit
bd0d907335
1 changed files with 2 additions and 0 deletions
|
@ -1884,6 +1884,7 @@ void CLI2::lexFilterArgs ()
|
||||||
// - neither argX nor argY are an operator, except (, ), and, or, xor
|
// - neither argX nor argY are an operator, except (, ), and, or, xor
|
||||||
// - candidate is one of: Lexer::Type::word
|
// - candidate is one of: Lexer::Type::word
|
||||||
// Lexer::Type::identifier
|
// Lexer::Type::identifier
|
||||||
|
// Lexer::Type::date
|
||||||
//
|
//
|
||||||
void CLI2::desugarFilterPlainArgs ()
|
void CLI2::desugarFilterPlainArgs ()
|
||||||
{
|
{
|
||||||
|
@ -1905,6 +1906,7 @@ void CLI2::desugarFilterPlainArgs ()
|
||||||
ppraw == "xor") &&
|
ppraw == "xor") &&
|
||||||
|
|
||||||
(prev->_lextype == Lexer::Type::identifier || // candidate
|
(prev->_lextype == Lexer::Type::identifier || // candidate
|
||||||
|
prev->_lextype == Lexer::Type::date || // candidate
|
||||||
prev->_lextype == Lexer::Type::word) && // candidate
|
prev->_lextype == Lexer::Type::word) && // candidate
|
||||||
|
|
||||||
prev->hasTag ("FILTER") && // candidate
|
prev->hasTag ("FILTER") && // candidate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue