Expressions

- Corrected interpretation of integers outside the location of a
  sequence as a word.
- Corrected interpretation of uuids outside the location of a
  sequence as a word.
This commit is contained in:
Paul Beckingham 2011-06-11 16:08:38 -04:00
parent 62d2dd316b
commit a9b942e913

View file

@ -244,20 +244,32 @@ void Arguments::categorize ()
} }
// <id>[-<id>][,...] // <id>[-<id>][,...]
else if (!found_something_after_sequence && else if (is_id (arg->first))
is_id (arg->first)) {
if (!found_something_after_sequence)
{ {
found_sequence = true; found_sequence = true;
arg->second = "id"; arg->second = "id";
} }
else
{
arg->second = "word";
}
}
// <uuid>[,...] // <uuid>[,...]
else if (!found_something_after_sequence && else if (is_uuid (arg->first))
is_uuid (arg->first)) {
if (!found_something_after_sequence)
{ {
found_sequence = true; found_sequence = true;
arg->second = "uuid"; arg->second = "uuid";
} }
else
{
arg->second = "word";
}
}
// [+-]tag // [+-]tag
else if (is_tag (arg->first)) else if (is_tag (arg->first))