From bd0d907335a9150e8ae465a960e8fa8d7fd7e6d9 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Wed, 14 Apr 2021 02:21:34 -0400 Subject: [PATCH] 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. --- src/CLI2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CLI2.cpp b/src/CLI2.cpp index 25291107f..2f142433d 100644 --- a/src/CLI2.cpp +++ b/src/CLI2.cpp @@ -1884,6 +1884,7 @@ void CLI2::lexFilterArgs () // - neither argX nor argY are an operator, except (, ), and, or, xor // - candidate is one of: Lexer::Type::word // Lexer::Type::identifier +// Lexer::Type::date // void CLI2::desugarFilterPlainArgs () { @@ -1905,6 +1906,7 @@ void CLI2::desugarFilterPlainArgs () ppraw == "xor") && (prev->_lextype == Lexer::Type::identifier || // candidate + prev->_lextype == Lexer::Type::date || // candidate prev->_lextype == Lexer::Type::word) && // candidate prev->hasTag ("FILTER") && // candidate