mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancements - Nibbler upgrades.
- Enhancements to ensure that EOS conditions don't break calls.
This commit is contained in:
parent
87ed7dad6c
commit
dde044c3d7
6 changed files with 139 additions and 21 deletions
|
@ -98,12 +98,12 @@ bool Att::parse (Nibbler& n)
|
|||
mValue = "";
|
||||
mMods.clear ();
|
||||
|
||||
if (n.getUntilChars (".:", mName))
|
||||
if (n.getUntilOneOf (".:", mName))
|
||||
{
|
||||
while (n.skip ('.'))
|
||||
{
|
||||
std::string mod;
|
||||
if (n.getUntilChars (".:", mod))
|
||||
if (n.getUntilOneOf (".:", mod))
|
||||
mMods.push_back (mod);
|
||||
else
|
||||
throw std::string ("Missing . or : after modifier");
|
||||
|
@ -113,7 +113,7 @@ bool Att::parse (Nibbler& n)
|
|||
{
|
||||
if (n.getQuoted ('"', mValue))
|
||||
return true;
|
||||
else if (n.getUntilChar (' ', mValue))
|
||||
else if (n.getUntil (' ', mValue))
|
||||
return true;
|
||||
|
||||
throw std::string ("Missing attribute value");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue