mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-04 12:28:35 +02:00
Bug - tags
- Modified A3::is_tag to allow @, # and $ in tag names.
This commit is contained in:
parent
69aa041218
commit
c62f36ef87
1 changed files with 7 additions and 7 deletions
14
src/A3.cpp
14
src/A3.cpp
|
@ -709,6 +709,13 @@ const A3 A3::tokenize (const A3& input) const
|
||||||
found_something_after_sequence = true;
|
found_something_after_sequence = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (is_tag (n, s))
|
||||||
|
{
|
||||||
|
output.push_back (Arg (s, Arg::cat_tag));
|
||||||
|
if (found_sequence)
|
||||||
|
found_something_after_sequence = true;
|
||||||
|
}
|
||||||
|
|
||||||
// Must be higher than number.
|
// Must be higher than number.
|
||||||
// Must be higher than operator.
|
// Must be higher than operator.
|
||||||
// Note that Nibbler::getDate does not read durations.
|
// Note that Nibbler::getDate does not read durations.
|
||||||
|
@ -728,13 +735,6 @@ const A3 A3::tokenize (const A3& input) const
|
||||||
found_something_after_sequence = true;
|
found_something_after_sequence = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (is_tag (n, s))
|
|
||||||
{
|
|
||||||
output.push_back (Arg (s, Arg::cat_tag));
|
|
||||||
if (found_sequence)
|
|
||||||
found_something_after_sequence = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
else if (n.getOneOf (operators, s))
|
else if (n.getOneOf (operators, s))
|
||||||
{
|
{
|
||||||
output.push_back (Arg (s, Arg::cat_op));
|
output.push_back (Arg (s, Arg::cat_op));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue