mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
CLI
- Properly labels ID and UUID values as literals.
This commit is contained in:
parent
4861c1ef1b
commit
0ca4b34f75
1 changed files with 5 additions and 0 deletions
|
@ -1111,6 +1111,7 @@ void CLI::desugarIDs ()
|
|||
|
||||
A value ("argSeq", r->first);
|
||||
value.tag ("FILTER");
|
||||
value.tag ("LITERAL");
|
||||
value.tag ("NUMBER");
|
||||
reconstructed.push_back (value);
|
||||
}
|
||||
|
@ -1133,6 +1134,7 @@ void CLI::desugarIDs ()
|
|||
|
||||
A startValue ("argSeq", r->first);
|
||||
startValue.tag ("FILTER");
|
||||
startValue.tag ("LITERAL");
|
||||
startValue.tag ("NUMBER");
|
||||
reconstructed.push_back (startValue);
|
||||
|
||||
|
@ -1153,6 +1155,7 @@ void CLI::desugarIDs ()
|
|||
|
||||
A endValue ("argSeq", r->second);
|
||||
endValue.tag ("FILTER");
|
||||
endValue.tag ("LITERAL");
|
||||
endValue.tag ("NUMBER");
|
||||
reconstructed.push_back (endValue);
|
||||
|
||||
|
@ -1244,6 +1247,7 @@ void CLI::desugarUUIDs ()
|
|||
|
||||
A value ("argSeq", "'" + *u + "'");
|
||||
value.tag ("FILTER");
|
||||
value.tag ("LITERAL");
|
||||
value.tag ("STRING");
|
||||
reconstructed.push_back (value);
|
||||
}
|
||||
|
@ -1277,6 +1281,7 @@ void CLI::desugarPlainArgs ()
|
|||
{
|
||||
if (a->hasTag ("FILTER") &&
|
||||
! a->hasTag ("ATTRIBUTE") &&
|
||||
! a->hasTag ("ATTMOD") &&
|
||||
! a->hasTag ("OP") &&
|
||||
! a->hasTag ("LITERAL"))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue