Branch: Tag:

2012-02-15

2012-02-15 20:51:54 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.AutoDoc.DocParser: Improved recovery from too many arguments.

564:       array(string) attrnames = attributenames[keyword];    int attrcount = sizeof(attrnames || ({}) ); -  if (attrcount < sizeof(args)) +  if (attrcount < sizeof(args)) {    parseError(sprintf("@%s with too many parameters", keyword)); -  +  args = args[..attrcount-1]; +  }    for (int i = 0; i < sizeof(args); ++i)    res[attrnames[i]] = attributequote(args[i]);    foreach(required_attributes[keyword]||({}), string attrname) {