return settings;
}
static bool ComplainExcessAttributes (Directive dt, ParsedTemplate pt)
{
if (dt.Attributes.Count == 0)
return false;
StringBuilder sb = new StringBuilder ("Unknown attributes ");
bool first = true;
foreach (string key in dt.Attributes.Keys) {
if (!first) {
sb.Append (", ");
} else {
first = false;
}
sb.Append (key);
}
sb.Append (" found in ");
sb.Append (dt.Name);
sb.Append (" directive.");
pt.LogWarning (sb.ToString (), dt.StartLocation);