Bug Fix - #252
- Fixed bug that prevented using end.after: and end.before: together to effect a range. - Required differentiation between positive and negative attribute modifiers, and special handling.
This commit is contained in:
13
src/Att.cpp
13
src/Att.cpp
@@ -407,6 +407,17 @@ std::string Att::type (const std::string& name) const
|
||||
return "text";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// The type of an attribute is useful for modifier evaluation.
|
||||
std::string Att::modType (const std::string& name) const
|
||||
{
|
||||
if (name == "hasnt" ||
|
||||
name == "isnt")
|
||||
return "negative";
|
||||
|
||||
return "positive";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// start --> name --> . --> mod --> : --> " --> value --> " --> end
|
||||
@@ -461,7 +472,7 @@ void Att::parse (Nibbler& n)
|
||||
else
|
||||
throw std::string ("Missing : after attribute name"); // TODO i18n
|
||||
|
||||
/* TODO This might be too slow to include. Test.
|
||||
/* TODO This might be too slow to include. Test this assumption.
|
||||
validNameValue (mName, mMod, mValue);
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user