Branch: Tag:

2012-01-24

2012-01-24 22:58:33 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.AutoDoc.DocParser: Added support for the obsolete @obsolete keyword.

79:    "image" : BRACEKEYWORD,       "deprecated" : SINGLEKEYWORD, +  "obsolete" : SINGLEKEYWORD,       "bugs" : DELIMITERKEYWORD,    "copyright" : DELIMITERKEYWORD,
130:      protected constant standard = (<    "note", "bugs", "example", "seealso", "deprecated", "fixme", "code", -  "copyright", "thanks", +  "copyright", "thanks", "obsolete",   >);      mapping(string : multiset(string)) allowedChildren =
340:    "elem" : elemArgHandler,    "index" : indexArgHandler,    "deprecated" : deprArgHandler, +  "obsolete" : deprArgHandler,    "section" : sectionArgHandler,    "type" : typeArgHandler,    "value" : valueArgHandler,
414:    return xmltag("value", xmlquote(s));    }    -  protected string deprArgHandler(string keyword, string arg) { +  protected string deprArgHandler(string keyword, string arg) +  { +  if (keyword != "deprecated") { +  parseError("Illegal keyword: @%s, did you mean @deprecated?"); +  }    .PikeParser parser = .PikeParser(arg, currentPosition);    if (parser->peekToken() == EOF)    return "";