mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug #819
- Patch applied to fix problem with parsing, where this: aa'a is parsed as aa 'a Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
parent
e127f33e3a
commit
ea3f0e8567
1 changed files with 5 additions and 13 deletions
18
src/A3.cpp
18
src/A3.cpp
|
@ -819,24 +819,16 @@ const A3 A3::tokenize (const A3& input) const
|
||||||
found_something_after_sequence = true;
|
found_something_after_sequence = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (n.getName (s) ||
|
|
||||||
n.getWord (s))
|
|
||||||
{
|
|
||||||
if (Date::valid (s))
|
|
||||||
output.push_back (Arg (s, Arg::type_date, Arg::cat_literal));
|
|
||||||
else
|
|
||||||
output.push_back (Arg (s, Arg::type_string, Arg::cat_literal));
|
|
||||||
|
|
||||||
if (found_sequence)
|
|
||||||
found_something_after_sequence = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (! n.getUntilWS (s))
|
if (! n.getUntilWS (s))
|
||||||
n.getUntilEOS (s);
|
n.getUntilEOS (s);
|
||||||
|
|
||||||
output.push_back (Arg (s, Arg::type_string, Arg::cat_literal));
|
if (Date::valid (s))
|
||||||
|
output.push_back (Arg (s, Arg::type_date, Arg::cat_literal));
|
||||||
|
else
|
||||||
|
output.push_back (Arg (s, Arg::type_string, Arg::cat_literal));
|
||||||
|
|
||||||
if (found_sequence)
|
if (found_sequence)
|
||||||
found_something_after_sequence = true;
|
found_something_after_sequence = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue