mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
A3 Parsing
- Added an 'until whitespace' clause to the attmod parser. Results are better. - Noted the need for more specific forms to be recognized.
This commit is contained in:
parent
b5053f3711
commit
dba950fcf7
1 changed files with 6 additions and 1 deletions
|
@ -1283,6 +1283,7 @@ bool A3::is_attmod (Nibbler& n, std::string& result)
|
||||||
std::string name;
|
std::string name;
|
||||||
std::string modifier;
|
std::string modifier;
|
||||||
std::string value;
|
std::string value;
|
||||||
|
// time_t date;
|
||||||
|
|
||||||
// If there is a valid attribute name.
|
// If there is a valid attribute name.
|
||||||
if (n.getName (name) &&
|
if (n.getName (name) &&
|
||||||
|
@ -1305,8 +1306,12 @@ bool A3::is_attmod (Nibbler& n, std::string& result)
|
||||||
// Consider removing this for a stricter parse.
|
// Consider removing this for a stricter parse.
|
||||||
if (n.getQuoted ('"', value) ||
|
if (n.getQuoted ('"', value) ||
|
||||||
n.getQuoted ('\'', value) ||
|
n.getQuoted ('\'', value) ||
|
||||||
|
// TODO Need more things recognized before it falls through to getUntilEOS.
|
||||||
|
// n.getDate (context.config.get ("dateformat"), date) ||
|
||||||
|
// need Duration too.
|
||||||
n.getName (value) ||
|
n.getName (value) ||
|
||||||
n.getUntilEOS (value) ||
|
n.getUntilWS (value) ||
|
||||||
|
n.getUntilEOS (value) || // Redundant?
|
||||||
n.depleted ())
|
n.depleted ())
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue