Branch: Tag:

2001-04-11

2001-04-11 15:21:58 by David Norlin <norlin@roxen.com>

Added support for enum and typedef.

Rev: lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod:1.25
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/PikeExtractor.pmod:1.10
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/PikeObjects.pmod:1.11
Rev: lib/modules/Tools.pmod/AutoDoc.pmod/PikeParser.pike:1.16

53:       "section" : CONTAINERKEYWORD,    +  "constant" : DELIMITERKEYWORD, // used inside @decl enum Foo +     "mapping" : CONTAINERKEYWORD, "member" : DELIMITERKEYWORD,    "multiset" : CONTAINERKEYWORD, "index" : DELIMITERKEYWORD,    "array" : CONTAINERKEYWORD, "elem" : DELIMITERKEYWORD,
73:    "int" : ({ "name" }),    "string" : ({ "name" }),    "mixed" : ({ "name" }), +  "constant" : ({ "name" }),   ]);      static constant standard = (< "note", "example", "seealso", "deprecated" >);
85:    "_class" : standard,    "_module" : standard,    "_constant" : standard, +  "_enum" : (< "constant" >) + standard,    "mapping" : (< "member" >),    "multiset": (< "index" >),    "array" : (< "elem" >),
100:    "member" : (< "member" >),    "type" : (< "type" >),    "value" : (< "value" >), +  "constant" : (< "constant" >),   ]);    -  + multiset(string) allowOnlyOne = + (< "seealso", +  "returns", +  "deprecated", + >); +    static int getKeywordType(string keyword) {    if (keywordtype[keyword])    return keywordtype[keyword];