Branch: Tag:

2004-03-02

2004-03-02 15:42:52 by Martin Nilsson <mani@lysator.liu.se>

Added @inherit

Rev: lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod:1.60
Rev: refdoc/keywords.txt:1.14

15:    array(PikeObject) decls = ({});    string belongs = 0;    string appears = 0; +  array(PikeObject) inherits = ({});   }      constant EOF = .PikeParser.EOF;
42:    "namespace" : METAKEYWORD,    "endnamespace" : METAKEYWORD,    "decl" : METAKEYWORD, +  "inherit" : METAKEYWORD,    "enum" : METAKEYWORD,    "endenum" : METAKEYWORD,   
827:    }    break;    +  case "inherit": +  { +  if (endkeyword) +  parseError("@%s must stand alone", endkeyword); +  string s = .PikeParser(arg, currentPosition)->parseIdents(); +  if (!s) +  parseError("@inherits: expected identifier, got %O", arg); +  Inherit i = .PikeObjects.Inherit(); +  i->name = s; +  i->classname = s; +  meta->inherits += ({ i }); +  } +  break; +     case "appears":    {    if (endkeyword)