mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI2: ::desugarFilterPlainArgs now needs to look for Lexer::Type::identifier
This commit is contained in:
parent
cd1bd1eec9
commit
9c8edc4121
1 changed files with 14 additions and 14 deletions
28
src/CLI2.cpp
28
src/CLI2.cpp
|
@ -1627,23 +1627,23 @@ void CLI2::desugarFilterPlainArgs ()
|
||||||
auto praw = prev->attribute ("raw");
|
auto praw = prev->attribute ("raw");
|
||||||
auto ppraw = prevprev->attribute ("raw");
|
auto ppraw = prevprev->attribute ("raw");
|
||||||
|
|
||||||
if ((prevprev->_lextype != Lexer::Type::op || // argX
|
if ((prevprev->_lextype != Lexer::Type::op || // argX
|
||||||
ppraw == "(" ||
|
ppraw == "(" ||
|
||||||
ppraw == ")" ||
|
ppraw == ")" ||
|
||||||
ppraw == "and" ||
|
ppraw == "and" ||
|
||||||
ppraw == "or" ||
|
ppraw == "or" ||
|
||||||
ppraw == "xor") &&
|
ppraw == "xor") &&
|
||||||
|
|
||||||
(prev->_lextype == Lexer::Type::dom || // candidate
|
(prev->_lextype == Lexer::Type::identifier || // candidate
|
||||||
prev->_lextype == Lexer::Type::word) && // candidate
|
prev->_lextype == Lexer::Type::word) && // candidate
|
||||||
|
|
||||||
prev->hasTag ("FILTER") && // candidate
|
prev->hasTag ("FILTER") && // candidate
|
||||||
|
|
||||||
(a._lextype != Lexer::Type::op || // argY
|
(a._lextype != Lexer::Type::op || // argY
|
||||||
raw == "(" ||
|
raw == "(" ||
|
||||||
raw == ")" ||
|
raw == ")" ||
|
||||||
raw == "and" ||
|
raw == "and" ||
|
||||||
raw == "or" ||
|
raw == "or" ||
|
||||||
raw == "xor"))
|
raw == "xor"))
|
||||||
{
|
{
|
||||||
prev->tag ("PLAIN");
|
prev->tag ("PLAIN");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue