E9 - Typo

- In one of the dumbest typos yet, I entered "fasle" instead of "false"
  and the copy/pasted it around.
This commit is contained in:
Paul Beckingham 2011-08-14 10:04:04 -04:00
parent 5a95b96631
commit f3f6cd260a
3 changed files with 8 additions and 23 deletions

View file

@ -715,6 +715,8 @@ const A3 A3::tokenize (const A3& input) const
found_something_after_sequence = true; found_something_after_sequence = true;
} }
// Must be higher than number.
// Must be higher than operator.
else if (n.getDate (date_format, t)) else if (n.getDate (date_format, t))
{ {
output.push_back (Arg (Date (t).toString (date_format), "date")); output.push_back (Arg (Date (t).toString (date_format), "date"));
@ -722,6 +724,8 @@ const A3 A3::tokenize (const A3& input) const
found_something_after_sequence = true; found_something_after_sequence = true;
} }
// Must be higher than number.
// Must be higher than operator.
else if (is_duration (n, s)) else if (is_duration (n, s))
{ {
output.push_back (Arg (s, "duration")); output.push_back (Arg (s, "duration"));

View file

@ -301,7 +301,7 @@ void E9::operator_lt (Term& result, Term& left, Term& right)
{ {
result._raw = result._value = (left._value < right._value) result._raw = result._value = (left._value < right._value)
? "true" ? "true"
: "fasle"; : "false";
} }
result._category = "bool"; result._category = "bool";
@ -324,7 +324,7 @@ void E9::operator_lte (Term& result, Term& left, Term& right)
{ {
result._raw = result._value = (left._value <= right._value) result._raw = result._value = (left._value <= right._value)
? "true" ? "true"
: "fasle"; : "false";
} }
result._category = "bool"; result._category = "bool";
@ -347,7 +347,7 @@ void E9::operator_gte (Term& result, Term& left, Term& right)
{ {
result._raw = result._value = (left._value >= right._value) result._raw = result._value = (left._value >= right._value)
? "true" ? "true"
: "fasle"; : "false";
} }
result._category = "bool"; result._category = "bool";
@ -369,7 +369,7 @@ void E9::operator_gt (Term& result, Term& left, Term& right)
{ {
result._raw = result._value = (left._value > right._value) result._raw = result._value = (left._value > right._value)
? "true" ? "true"
: "fasle"; : "false";
} }
result._category = "bool"; result._category = "bool";

View file

@ -463,18 +463,6 @@ void Command::modify_task (
task.removeTag (value); task.removeTag (value);
} }
/*
// Words and operators are aggregated into a description.
else if (arg->_category == "word" ||
arg->_category == "op")
{
if (description.length ())
description += " ";
description += arg->_raw;
}
*/
// Substitutions. // Substitutions.
else if (arg->_category == "subst") else if (arg->_category == "subst")
{ {
@ -485,13 +473,6 @@ void Command::modify_task (
task.substitute (from, to, global); task.substitute (from, to, global);
} }
/*
// Any additional argument types are indicative of a failure in
// A3::extract_modifications.
else
throw format (STRING_CMD_MOD_UNEXPECTED, arg->_raw);
*/
// Anything else is essentially downgraded to 'word' and considered part of // Anything else is essentially downgraded to 'word' and considered part of
// the description. // the description.
else else