mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Identify DOM references by their prefix ('dom.<...>') and mark them as such when analyzing the command line
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
9ae3ace109
commit
13f1de2c49
1 changed files with 5 additions and 2 deletions
|
@ -522,6 +522,10 @@ void CLI::identifyFilter ()
|
||||||
a.tag ("KEYWORD");
|
a.tag ("KEYWORD");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (raw.rfind("dom.",0) == 0)
|
||||||
|
{
|
||||||
|
a.tag ("DOM");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
a.tag ("FILTER");
|
a.tag ("FILTER");
|
||||||
|
@ -614,8 +618,7 @@ std::vector <std::string> CLI::getDomReferences () const
|
||||||
|
|
||||||
for (auto &arg : _args)
|
for (auto &arg : _args)
|
||||||
{
|
{
|
||||||
if (arg.hasTag ("TAG") &&
|
if (arg.hasTag ("DOM"))
|
||||||
arg.hasTag ("FILTER"))
|
|
||||||
{
|
{
|
||||||
references.emplace_back (arg.attribute ("raw"));
|
references.emplace_back (arg.attribute ("raw"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue