Attribute Parsing

- Attributes do not contain spaces unless specifically quoted and
  escaped.
This commit is contained in:
Paul Beckingham 2011-07-31 15:19:06 -04:00
parent a171f6e4ac
commit a91b6d4564
2 changed files with 7 additions and 6 deletions

View file

@ -145,7 +145,7 @@ void A3::capture (int argc, const char** argv)
void A3::capture (const std::string& arg)
{
std::vector <std::string> parts;
this->push_back (Arg (arg, ""));
this->push_back (Arg (arg, ""));
}
////////////////////////////////////////////////////////////////////////////////
@ -1214,6 +1214,7 @@ bool A3::is_attr (Nibbler& n, std::string& result)
if (n.getQuoted ('"', value) ||
n.getQuoted ('\'', value) ||
n.getName (value) ||
n.getUntilWS (value) ||
n.getUntilEOS (value) ||
n.depleted ())
{